David Coudrier 10 年 前
コミット
1514c536bb

+ 2 - 2
src/extensions/reorder-rows/bootstrap-table-reorder-rows.js

@@ -91,7 +91,7 @@
         });
     };
 
-    BootstrapTable.prototype.onDrop = function (table, row) {
+    BootstrapTable.prototype.onDrop = function (table, droppedRow) {
         var tableBs = $(table),
             tableBsData = tableBs.data('bootstrap.table'),
             tableBsOptions = tableBs.data('bootstrap.table').options,
@@ -107,7 +107,7 @@
         tableBsOptions.data = newData;
 
         //Call the user defined function
-        tableBsOptions.onReorderRowsDrop.apply(table, row);
+        tableBsOptions.onReorderRowsDrop.apply(table, [droppedRow]);
 
         //Call the event reorder-row
         tableBsData.trigger('reorder-row', newData);