Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 4:
- var obj = {
- action: "delete", // nie wazne
- }
- Database.methods.download(obj)
- .done(function (response) {
- let o = JSON.parse(response)
- console.log(o.godziny.length)
- let content = ""
- let table = $("#hours_d")
- table.append("<table>")
- for (var i = 0; i < o.godziny.length; ++i) {
- console.log(o.godziny[i])
- table.append("<tr>")
- table.append("<th>" + (i+1) + "</th>")
- table.append("<th>" + o.godziny[i].odG + ":" + o.godziny[i].odM + "</th>")
- table.append("<th>" + o.godziny[i].doG + ":" + o.godziny[i].doM + "</th>")
- table.append("</tr>")
- }
- table.append("</table>")
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement