Checkbox should wrapped with labels

This commit is contained in:
2016-02-22 07:53:59 +08:00
parent e2cda7ca2c
commit 7be076461a
9 changed files with 133 additions and 104 deletions
@@ -38,7 +38,7 @@
{
// Input fields
var v_snippetInput = Dand.wrap("input", null, "v_snippet_input_single", null, new IKey("type", "text"))
, input_preferred = Dand.wrapna('input', new IKey("type", "checkbox"))
, input_preferred = Dand.wrapna( "input", new IKey( "type", "checkbox" ) )
;
if ( this._stage )
@@ -52,7 +52,7 @@
"Insert site file"
, Dand.wrape([
v_snippetInput
, Dand.wrape([ input_preferred, Dand.textNode( "Preferred" ) ])
, Dand.wrape( Dand.wrapne( "label", [ input_preferred, "Preferred" ] ) )
])
, "OK", "Cancel"
, visualizer.bind({