|
@@ -44,8 +44,6 @@
|
|
|
|
|
|
|
|
BootstrapTable.prototype.init = function () {
|
|
BootstrapTable.prototype.init = function () {
|
|
|
|
|
|
|
|
- _init.apply(this, Array.prototype.slice.apply(arguments));
|
|
|
|
|
-
|
|
|
|
|
if (!this.options.reorderableRows) {
|
|
if (!this.options.reorderableRows) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -62,6 +60,8 @@
|
|
|
onPostBody.apply();
|
|
onPostBody.apply();
|
|
|
}, 1);
|
|
}, 1);
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+ _init.apply(this, Array.prototype.slice.apply(arguments));
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
BootstrapTable.prototype.initSearch = function () {
|
|
BootstrapTable.prototype.initSearch = function () {
|
|
@@ -91,7 +91,7 @@
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- BootstrapTable.prototype.onDrop = function (table, row) {
|
|
|
|
|
|
|
+ BootstrapTable.prototype.onDrop = function (table, droppedRow) {
|
|
|
var tableBs = $(table),
|
|
var tableBs = $(table),
|
|
|
tableBsData = tableBs.data('bootstrap.table'),
|
|
tableBsData = tableBs.data('bootstrap.table'),
|
|
|
tableBsOptions = tableBs.data('bootstrap.table').options,
|
|
tableBsOptions = tableBs.data('bootstrap.table').options,
|
|
@@ -107,7 +107,7 @@
|
|
|
tableBsOptions.data = newData;
|
|
tableBsOptions.data = newData;
|
|
|
|
|
|
|
|
//Call the user defined function
|
|
//Call the user defined function
|
|
|
- tableBsOptions.onReorderRowsDrop.apply(table, row);
|
|
|
|
|
|
|
+ tableBsOptions.onReorderRowsDrop.apply(table, [table, droppedRow]);
|
|
|
|
|
|
|
|
//Call the event reorder-row
|
|
//Call the event reorder-row
|
|
|
tableBsData.trigger('reorder-row', newData);
|
|
tableBsData.trigger('reorder-row', newData);
|