chcklist vertical alignment
This commit is contained in:
src
@@ -36,12 +36,12 @@ $(function(){
|
||||
}
|
||||
|
||||
for(var i=0; i<this.sourceData.length; i++) {
|
||||
$label = $('<label>').text(' '+this.sourceData[i].text)
|
||||
.prepend($('<input>', {
|
||||
$label = $('<label>').append($('<input>', {
|
||||
type: 'checkbox',
|
||||
value: this.sourceData[i].value,
|
||||
name: this.options.name
|
||||
}));
|
||||
}))
|
||||
.append($('<span>').text(' '+this.sourceData[i].text));
|
||||
|
||||
$('<div>').append($label).appendTo(this.$input);
|
||||
}
|
||||
@@ -109,6 +109,13 @@ $(function(){
|
||||
**/
|
||||
tpl:'<div></div>',
|
||||
|
||||
/**
|
||||
@property inputclass
|
||||
@type string
|
||||
@default span2 editable-checklist
|
||||
**/
|
||||
inputclass: 'span2 editable-checklist',
|
||||
|
||||
/**
|
||||
Separator of values in string when sending to server
|
||||
|
||||
|
Reference in New Issue
Block a user