knete.nim: change order of parameters in replaceById

This commit is contained in:
Andreas Rumpf 2018-06-10 12:09:30 +02:00
commit 330a7351f9
2 changed files with 2 additions and 2 deletions

View file

@ -538,7 +538,7 @@ proc preventDefault*(ev: Event) {.importcpp.}
# ------------------ Init handling ----------------------------------- # ------------------ Init handling -----------------------------------
proc replaceById(id: cstring; newTree: Element) = proc replaceById*(newTree: Element; id: cstring = "ROOT") =
let x = getElementById(id) let x = getElementById(id)
x.parent.replaceChild(newTree, x) x.parent.replaceChild(newTree, x)
newTree.id = id newTree.id = id

View file

@ -129,7 +129,7 @@ proc renderColumn(c: Column): Element =
ev.target.up("mycolumn").add(getElementById(data)) ev.target.up("mycolumn").add(getElementById(data))
result = buildHtml(): result = buildHtml():
tdiv(class = "mycolumn", style = {cssFloat: "left", width: "33%"}, tdiv(class = "mycolumn", style = {cssFloat: "left", width: "20%"},
ondrop = drop, ondragover = allowDrop): ondrop = drop, ondragover = allowDrop):
tdiv(class = "myheader"): tdiv(class = "myheader"):
bindField c.header bindField c.header