|
@@ -1248,6 +1248,8 @@
|
|
|
(value && value.disabled) ? 'disabled' : undefined) +
|
|
(value && value.disabled) ? 'disabled' : undefined) +
|
|
|
' />',
|
|
' />',
|
|
|
that.options.cardView ? '</div>' : '</td>'].join('');
|
|
that.options.cardView ? '</div>' : '</td>'].join('');
|
|
|
|
|
+
|
|
|
|
|
+ item[that.header.stateField] = value === true || (value && value.checked);
|
|
|
} else {
|
|
} else {
|
|
|
value = typeof value === 'undefined' || value === null ?
|
|
value = typeof value === 'undefined' || value === null ?
|
|
|
that.options.undefinedText : value;
|
|
that.options.undefinedText : value;
|
|
@@ -1456,11 +1458,11 @@
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- BootstrapTable.prototype.updateRows = function (checked) {
|
|
|
|
|
|
|
+ BootstrapTable.prototype.updateRows = function () {
|
|
|
var that = this;
|
|
var that = this;
|
|
|
|
|
|
|
|
this.$selectItem.each(function () {
|
|
this.$selectItem.each(function () {
|
|
|
- that.data[$(this).data('index')][that.header.stateField] = checked;
|
|
|
|
|
|
|
+ that.data[$(this).data('index')][that.header.stateField] = $(this).prop('checked');
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|