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 -----------------------------------
proc replaceById(id: cstring; newTree: Element) =
proc replaceById*(newTree: Element; id: cstring = "ROOT") =
let x = getElementById(id)
x.parent.replaceChild(newTree, x)
newTree.id = id

View file

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