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