/* * bootstrap-table - v1.9.0 - 2015-09-30 * https://github.com/wenzhixin/bootstrap-table * copyright (c) 2015 zhixin wen * licensed mit license */ !function(a){"use strict";var b=function(b,c){b.options.columnshidden.length>0&&a.each(b.columns,function(d,e){-1!==b.options.columnshidden.indexof(e.field)&&e.visible!==c&&b.togglecolumn(a.fn.bootstraptable.utils.getfieldindex(b.columns,e.field),c,!0)})},c=function(a){(a.options.height||a.options.showfooter)&&settimeout(a.resetview,1)},d=function(a,b,d){a.options.minheight?b<=a.options.minwidth&&d<=a.options.minheight?e(a):b>a.options.minwidth&&d>a.options.minheight&&f(a):b<=a.options.minwidth?e(a):b>a.options.minwidth&&f(a),c(a)},e=function(a){g(a,!1),b(a,!1)},f=function(a){g(a,!0),b(a,!0)},g=function(a,b){a.options.cardview=b,a.toggleview()},h=function(a,b){var c;return function(){var d=this,e=arguments,f=function(){c=null,a.apply(d,e)};cleartimeout(c),c=settimeout(f,b)}};a.extend(a.fn.bootstraptable.defaults,{mobileresponsive:!1,minwidth:562,minheight:void 0,heightthreshold:100,checkoninit:!0,columnshidden:[]});var i=a.fn.bootstraptable.constructor,j=i.prototype.init;i.prototype.init=function(){if(j.apply(this,array.prototype.slice.apply(arguments)),this.options.mobileresponsive&&this.options.minwidth){var b=this,c={width:a(window).width(),height:a(window).height()};if(a(window).on("resize orientationchange",h(function(){var e=a(this).height(),f=a(this).width();(math.abs(c.height-e)>b.options.heightthreshold||c.width!=f)&&(d(b,f,e),c={width:f,height:e})},200)),this.options.checkoninit){var e=a(window).height(),f=a(window).width();d(this,f,e),c={width:f,height:e}}}}}(jquery);