Browse Source

onDrop fix

David Coudrier 10 years ago
parent
commit
1514c536bb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/extensions/reorder-rows/bootstrap-table-reorder-rows.js

+ 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),
         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, [droppedRow]);
 
 
         //Call the event reorder-row
         //Call the event reorder-row
         tableBsData.trigger('reorder-row', newData);
         tableBsData.trigger('reorder-row', newData);