chcklist vertical alignment

This commit is contained in:
vitalets
2012-11-27 14:09:48 +04:00
parent 02c4c685ae
commit 5ef1a9e184
2 changed files with 18 additions and 3 deletions
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