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
@@ -57,7 +57,7 @@
// Input fields
var v_snippetInput = Dand.wrap( "textarea", null, "v_snippet_input" )
, v_codelang = Dand.wrap( "select", null, "v_select flsf", compileListItems() )
, input_inline = Dand.wrapna('input', new IKey("type", "checkbox") );
, input_inline = Dand.wrapna( "input", new IKey( "type", "checkbox" ) );
if ( this._stage )
{
@@ -90,7 +90,7 @@
, [
Dand.wrapc( "v_instruction", v_codelang )
, v_snippetInput
, Dand.wrape([ input_inline, Dand.textNode( "Inline" ) ])
, Dand.wrape( Dand.wrapne( "label", [ input_inline, "Inline" ] ) )
]
)
, "OK", "Cancel"