|
|
@@ -1470,19 +1470,20 @@
|
|
|
type = column.radio ? 'radio' : type;
|
|
|
|
|
|
text = [that.options.cardView ?
|
|
|
- '<div class="card-view">' : '<td class="bs-checkbox">',
|
|
|
- '<input' +
|
|
|
- sprintf(' data-index="%s"', i) +
|
|
|
- sprintf(' name="%s"', that.options.selectItemName) +
|
|
|
- sprintf(' type="%s"', type) +
|
|
|
- sprintf(' value="%s"', item[that.options.idField]) +
|
|
|
- sprintf(' checked="%s"', value === true ||
|
|
|
- (value && value.checked) ? 'checked' : undefined) +
|
|
|
- sprintf(' disabled="%s"', !column.checkboxEnabled ||
|
|
|
- (value && value.disabled) ? 'disabled' : undefined) +
|
|
|
- ' />',
|
|
|
- that.options.cardView ? '</div>' : '</td>'
|
|
|
- ].join('');
|
|
|
+ '<div class="card-view">' : '<td class="bs-checkbox">',
|
|
|
+ '<input' +
|
|
|
+ sprintf(' data-index="%s"', i) +
|
|
|
+ sprintf(' name="%s"', that.options.selectItemName) +
|
|
|
+ sprintf(' type="%s"', type) +
|
|
|
+ sprintf(' value="%s"', item[that.options.idField]),
|
|
|
+ column.formatter === undefined ?
|
|
|
+ sprintf(' checked="%s"', value === true ||
|
|
|
+ (value && value.checked) ? 'checked' : undefined) +
|
|
|
+ sprintf(' disabled="%s"', !column.checkboxEnabled ||
|
|
|
+ (value && value.disabled) ? 'disabled' : undefined) +
|
|
|
+ ' />': ' />' + value,
|
|
|
+ that.options.cardView ? '</div>' : '</td>'
|
|
|
+ ].join('');
|
|
|
|
|
|
item[that.header.stateField] = value === true || (value && value.checked);
|
|
|
} else {
|