|
|
@@ -1049,15 +1049,11 @@
|
|
|
}
|
|
|
|
|
|
if (column.checkbox || column.radio) {
|
|
|
- //if card view mode bypass
|
|
|
- if (that.options.cardView) {
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
type = column.checkbox ? 'checkbox' : type;
|
|
|
type = column.radio ? 'radio' : type;
|
|
|
|
|
|
- text = ['<td class="bs-checkbox">',
|
|
|
+ text = [that.options.cardView ?
|
|
|
+ '<div class="card-view">' : '<td class="bs-checkbox">',
|
|
|
'<input' +
|
|
|
sprintf(' data-index="%s"', i) +
|
|
|
sprintf(' name="%s"', that.options.selectItemName) +
|
|
|
@@ -1068,7 +1064,7 @@
|
|
|
sprintf(' disabled="%s"', !column.checkboxEnabled ||
|
|
|
(value && value.disabled) ? 'disabled' : undefined) +
|
|
|
' />',
|
|
|
- '</td>'].join('');
|
|
|
+ that.options.cardView ? '</div>' : '</td>'].join('');
|
|
|
} else {
|
|
|
value = typeof value === 'undefined' || value === null ?
|
|
|
that.options.undefinedText : value;
|