Browse Source

Added support to showFooter option

Dennis Hernández 10 years ago
parent
commit
0a8140f988
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/extensions/resizable/bootstrap-table-resizable.js

+ 7 - 1
src/extensions/resizable/bootstrap-table-resizable.js

@@ -21,7 +21,7 @@
             minWidth: that.options.minWidth,
             hoverCursor: that.options.hoverCursor,
             dragCursor: that.options.dragCursor,
-            onResize: that.options.onResizableResize,
+            onResize: that.onResize,
             onDrag: that.options.onResizableDrag
         });
     };
@@ -84,4 +84,10 @@
             initResizable(this);
         }
     };
+
+    BootstrapTable.prototype.onResize = function (e) {
+        var that = $(e.currentTarget);
+        that.bootstrapTable('resetView');
+        that.data('bootstrap.table').options.onResizableResize.apply(e);
+    }
 })(jQuery);