|
|
@@ -1,10 +1,10 @@
|
|
|
/**
|
|
|
* @author: Dennis Hernández
|
|
|
* @webSite: http://djhvscf.github.io/Blog
|
|
|
- * @version: v1.0.0
|
|
|
+ * @version: v1.0.1
|
|
|
*/
|
|
|
|
|
|
-!function ($) {
|
|
|
+(function ($) {
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
@@ -105,7 +105,9 @@
|
|
|
row.data('index', i).attr('data-index', i);
|
|
|
}
|
|
|
|
|
|
- tableBsOptions.data = newData;
|
|
|
+ tableBsOptions.data = tableBsOptions.data.slice(0, tableBsData.pageFrom - 1)
|
|
|
+ .concat(newData)
|
|
|
+ .concat(tableBsOptions.data.slice(tableBsData.pageTo));
|
|
|
|
|
|
//Call the user defined function
|
|
|
tableBsOptions.onReorderRowsDrop.apply(table, [table, droppedRow]);
|
|
|
@@ -113,4 +115,4 @@
|
|
|
//Call the event reorder-row
|
|
|
tableBsData.trigger('reorder-row', newData);
|
|
|
};
|
|
|
-}(jQuery);
|
|
|
+})(jQuery);
|