|
|
@@ -467,8 +467,13 @@
|
|
|
return 'Clear Filters';
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);
|
|
|
|
|
|
+ $.extend($.fn.bootstrapTable.methods, [
|
|
|
+ 'triggerSearch'
|
|
|
+ ]);
|
|
|
+
|
|
|
var BootstrapTable = $.fn.bootstrapTable.Constructor,
|
|
|
_init = BootstrapTable.prototype.init,
|
|
|
_initToolbar = BootstrapTable.prototype.initToolbar,
|
|
|
@@ -694,4 +699,18 @@
|
|
|
}, that.options.searchTimeOut);
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
+ BootstrapTable.prototype.triggerSearch = function () {
|
|
|
+ var header = getCurrentHeader(this),
|
|
|
+ searchControls = getCurrentSearchControls(this);
|
|
|
+
|
|
|
+ header.find(searchControls).each(function () {
|
|
|
+ var el = $(this);
|
|
|
+ if(el.is('select')) {
|
|
|
+ el.change();
|
|
|
+ } else {
|
|
|
+ el.keyup();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
})(jQuery);
|