From a0e5229d32be062451991a7d0b3bf174cb932314 Mon Sep 17 00:00:00 2001 From: Mottie Date: Sat, 13 Oct 2012 15:10:29 -0500 Subject: [PATCH] changed selectorRemove default --- README.markdown | Bin 45844 -> 42556 bytes addons/pager/jquery.tablesorter.pager.js | 2 +- addons/pager/jquery.tablesorter.pager.min.js | 4 ++-- docs/example-option-date-format.html | 2 +- js/jquery.tablesorter.js | 2 +- js/jquery.tablesorter.min.js | 4 ++-- js/jquery.tablesorter.widgets.js | 2 +- js/jquery.tablesorter.widgets.min.js | 16 ++++++++-------- package.json | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.markdown b/README.markdown index 5babe5814061d1951c37c893fb277fb4b8f16e4c..1bc2d091e77992c65fa0f61261d0b48f82c754fc 100644 GIT binary patch delta 1207 zcmZuw%S%*Y6hEUNF=lF`=$#@zwS1&a%~(pV3JqE$gW9SGdcBU18fS)iIO-yCn+VBq z*TZ$R30wuzUl2vEf}mPN+i24=`u)D^Fb>7#yWiuye&?Lu+4)hm|E}uw_dxYs8P(?z zN3T`g+4~bXsIQNSksgW4CAo3s^b*+2d4S zmY9C*a@Vm-Cp2>S3efWqcL^VT=AnNTsG~%UeNcLV;wXZ#!)Wko?Go^xh8=MbL0*bD zxxkpSH)iNb(!Ql|F04z&3TQxe?hNijoq@CDe-g_>V+Gp%(97XWhaT=mXt82n7iA5v z4BLYkE{Z`&z1AiHUC*Wx29J(bpWD?&I2s-AVOZQIbw@ib+-8~-YS2x;LJBI+w z5YF_??y1HyO?~=o1pZ&t#7nyDK?YwM zP#J?goq>L(HCaMFkQak~RLh4El+Q)q=5=E$q>;LyK8ZEePQVYj1!n2?>5zVDZRpG6 zZe&_IV4W??(Qg*N0}_^vrA=sj<6OH7^sX(eSBe1{v9b7RDXRO*(fxRMhy^ca5+gO>x=m(g(d^~0#c6`U)*8XFn>w%Oj?GCI9o zGelISb`wh_8~yr}x@=?)NH}eI#P6)WB2mu76!w3ZUXEHhW3$MBS@>BOZFJ_GL1nT) z$lkHS8Jt~^4wTdn1;;BkR>3y8oz3d{|tW+uosM9b zM<&Tx3}-Q%P;0mdQWW<%o*CTv)afFLvv`lmXSbTA+FdW#-8DrZ8jIoNKun#gk>)i| zV?-wyhed)IQDPA z5WqeIAi*Z>j6aIBHHmsh6hO`64T8bwyv{O!XH@TxHB`8XlhyGUrpe9>o-wG!VxG|d zE6oKlKLK;rJp&`mmfxJDw?ji~*h}CUW)8DigcDGgaOLq%{SxqQ{3_Svv6C84$osn< z@!hOH92 z_u|2PjN;8{4q&y7l&6EjC?%I{3~OwSL{|TgnRAvIYt^t4R$tp zk^Lan9VEY$+yI1XPOhmX=EyOu00;^y-6l*$!ie18eui2dZY@)c)vD$D5IU9gp7#XN zy9_MmR8o3(-Oc8_=8-(|Lir%XkWeD^S2%yPy=$~!|A8+1OP!<*>lUU z8$Jm%)xUBTJ5$(YaHo}JSR_;|c1$ph|6GyOXOo~Bo(RR`vMs;83je!2RtQ@-#z``KA-<0)?eRH^B_#d+KO^4eEO^=ek|w5;?OYs{$5 zF0bp1sYA;e3DZ7V!^s$%CK_zP-uZ&P^VVK-ge;)-vE?$0th$CfnZvvM+2^WC(~s=z zy4=K(UmCXSuY&m{T6Tow(Hl`$2r}=|^_IDj`@BpKxLxDwW$<%Fjo}(rBWhfYA&xWM zPZ-C3)1!FCZC#}Ie!qDqKZxmKwxQ`uMt&FPy1j(22aszv_Ta7yrg z%?WdA^cgBBs-Heb22?+N>hi;n4|0+QJLHqrR$-kTF@}rZax7r1eyncf=$uwHE9sIr zUiWNqeNvB+OLE4K3)W0(o>>)7uthqIG4lmrPYYMmqsf(VJlPI?Fxn|FGY|WD*{r@I z4ck7bCWAeuv!Ao}<-0nM{500k7*?a0!&fWvi{hRD7B{-d<07u^%2}-sJ8Qlyxo7Ir z7Wwi*%~oZGJOeARoGkES@-X@}sMya=){0sDh>KlCy_ZC$@#=&E*srKDs>#%jf|WLP T9fSNl$pHlOF+@2Nc1!Jlb8Uw_ diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index 13402ae1..7ac39afc 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -1,6 +1,6 @@ /*! * tablesorter pager plugin - * updated 9/27/2012 + * updated 10/13/2012 */ /*jshint browser:true, jquery:true */ ;(function($) { diff --git a/addons/pager/jquery.tablesorter.pager.min.js b/addons/pager/jquery.tablesorter.pager.min.js index 4182c95c..3bf6f65f 100644 --- a/addons/pager/jquery.tablesorter.pager.min.js +++ b/addons/pager/jquery.tablesorter.pager.min.js @@ -1,2 +1,2 @@ -/*! tablesorter pager plugin minified - updated 9/27/2012 */ -;(function(d){d.extend({tablesorterPager:new function(){this.defaults={container:null,ajaxUrl:null,ajaxProcessing:function(){return[0,[],null]},output:"{startRow} to {endRow} of {totalRows} rows",updateArrows:!0,page:0,size:10,fixedHeight:!1,removeRows:!1,cssFirst:".first",cssPrev:".prev",cssNext:".next",cssLast:".last",cssGoto:".gotoPage",cssPageDisplay:".pagedisplay",cssPageSize:".pagesize",cssDisabled:"disabled",totalRows:0,totalPages:0,filteredRows:0,filteredPages:0};var m=this,p=function(c,a){var b= c.cssDisabled,e=!!a,f=Math.min(c.totalPages,c.filteredPages);c.updateArrows&&(d(c.cssFirst+","+c.cssPrev,c.container)[e||0===c.page?"addClass":"removeClass"](b),d(c.cssNext+","+c.cssLast,c.container)[e||c.page===f-1?"addClass":"removeClass"](b))},s=function(c,a){var b,e,f;b=d(c).hasClass("hasFilters");a.filteredRows=b?d(c).find("tbody tr:not(.filtered)").length:a.totalRows;a.filteredPages=b?Math.ceil(a.filteredRows/a.size):a.totalPages;if(0 a.filteredRows,a.startRow=f?1:a.size*a.page+1,a.page=f?0:a.page,a.endRow=Math.min(a.filteredRows,a.totalRows,a.size*(a.page+1)),e=d(a.cssPageDisplay,a.container),b=a.output.replace(/\{(page|filteredRows|filteredPages|totalPages|startRow|endRow|totalRows)\}/gi,function(b){return{"{page}":a.page+1,"{filteredRows}":a.filteredRows,"{filteredPages}":a.filteredPages,"{totalPages}":a.totalPages,"{startRow}":a.startRow,"{endRow}":a.endRow,"{totalRows}":a.totalRows}[b]}),e[0]&&(e["INPUT"===e[0].tagName?"val": "html"](b),d(a.cssGoto,a.container).length))){f="";e=Math.min(a.totalPages,a.filteredPages);for(b=1;b<=e;b++)f+="";d(a.cssGoto,a.container).html(f).val(a.page+1)}p(a);d(c).trigger("pagerComplete",a)},t=function(c,a){var b,e=d(c.tBodies[0]);if(a.fixedHeight&&(e.find("tr.pagerSavedHeightSpacer").remove(),b=d.data(c,"pagerSavedHeight")))b-=e.height(),5')},q=function(c,a){var b=d(c.tBodies[0]);b.find("tr.pagerSavedHeightSpacer").remove();d.data(c,"pagerSavedHeight",b.height());t(c,a);d.data(c,"pagerLastSize",a.size)},n=function(c,a){var b,e=d("tr:not(."+c.config.cssChildRow+")",c.tBodies),f=e.length,g=a.page*a.size,h=g+a.size,j=0;for(b=0;b=g&&j'+(e?e.message+" ("+e.name+")":"No rows found")+"",k=b.ajaxProcessing(c)||[0,[]],u=k[1]||[],q=u.length,r=k[2];if(0";for(f=0;f"+u[c][f]+"";l+=""}r&&r.length===m&&(g=i.hasClass("hasStickyHeaders"),j=i.find("."+(b.widgetOptions&&b.widgetOptions.stickyHeaders||"tablesorter-stickyheader")),h=i.find("tfoot tr:first").children(),i.find("thead tr.tablesorter-header th").each(function(b){var a=d(this),a=a.find("span").length?a.find("span:first"):a;a.html(r[b]);h.eq(b).html(r[b]);g&&j.length&&(a=j.find("th").eq(b),a=a.find("span").length?a.find("span:first"):a,a.html(r[b]))}));e?i.find("thead").append(p):n.html(l); b.temp.remove();i.trigger("update");b.totalRows=k[0]||0;b.totalPages=Math.ceil(b.totalRows/b.size);s(a,b);t(a,b);i.trigger("pagerChange",b)}},x=function(c,a){var b=d(c),e=a.ajaxUrl.replace(/\{page\}/g,a.page).replace(/\{size\}/g,a.size);""!==e&&(a.temp=d("
",{"class":"tablesorter-processing",width:b.outerWidth(!0),height:b.outerHeight(!0)}),b.before(a.temp),d(document).ajaxError(function(b,d,e,h){w(null,c,a,h)}),d.getJSON(e,function(b){w(b,c,a)}))},k=function(c,a,b){var e,f,g,k=document.createDocumentFragment(), j=a.length;e=b.page*b.size;var i=e+b.size;if(!(1>j)){d(c).trigger("pagerChange",b);if(b.removeRows){i>a.length&&(i=a.length);d(c.tBodies[0]).addClass("tablesorter-hidden");for(d.tablesorter.clearTableBody(c);e=b.totalPages&&(b.page=Math.min(b.totalPages,b.filteredPages)-1,h(c,b));s(c,b);b.isDisabled||t(c,b);d(c).trigger("applyWidgets")}},y= function(c,a){a.ajax?p(a,!0):(a.isDisabled=!0,d.data(c,"pagerLastPage",a.page),d.data(c,"pagerLastSize",a.size),a.page=0,a.size=a.totalRows,a.totalPages=1,d("tr.pagerSavedHeightSpacer",c.tBodies[0]).remove(),k(c,c.config.rowsCopy,a));d(a.cssPageSize,a.container).addClass(a.cssDisabled)[0].disabled=!0},h=function(c,a){if(!a.isDisabled){var b=Math.min(a.totalPages,a.filteredPages);if(0>a.page||a.page>b-1)a.page=0;d.data(c,"pagerLastPage",a.page);a.ajax?x(c,a):k(c,c.config.rowsCopy,a)}},z=function(c, a,b){b.size=a;d.data(c,"pagerLastPage",b.page);d.data(c,"pagerLastSize",b.size);b.totalPages=Math.ceil(b.totalRows/b.size);h(c,b)},A=function(c,a,b){var e=d(a.cssPageSize,a.container).removeClass(a.cssDisabled).removeAttr("disabled");a.isDisabled=!1;a.page=d.data(c,"pagerLastPage")||a.page||0;a.size=d.data(c,"pagerLastSize")||parseInt(e.val(),10)||a.size;a.totalPages=Math.ceil(Math.min(a.totalPages,a.filteredPages)/a.size);b&&(d(c).trigger("update"),z(c,a.size,a),v(c,a),t(c,a))};m.appender=function(c, a){var b=c.config.pager;b.ajax||(c.config.rowsCopy=a,b.totalRows=a.length,b.size=d.data(c,"pagerLastSize")||b.size,b.totalPages=Math.ceil(b.totalRows/b.size),k(c,a,b))};m.construct=function(c){return this.each(function(){var a=this.config,b=a.pager=d.extend({},d.tablesorterPager.defaults,c),e=this,f=d(e),g=d(b.container).addClass("tablesorter-pager").show();a.appender=m.appender;A(e,b,!1);"string"===typeof b.ajaxUrl?(b.ajax=!0,x(e,b)):(b.ajax=!1,d(this).trigger("appendCache",!0),v(e,b));d(e).hasClass("hasFilters")&& d(e).unbind("filterEnd.pager").bind("filterEnd.pager",function(){b.page=0;s(e,b);h(e,b);q(e,b)});d(b.cssGoto,g).length&&(d(b.cssGoto,g).bind("change",function(){b.page=d(this).val()-1;h(e,b)}),s(e,b));d(b.cssFirst,g).unbind("click.pager").bind("click.pager",function(){d(this).hasClass(b.cssDisabled)||(b.page=0,h(e,b));return!1});d(b.cssNext,g).unbind("click.pager").bind("click.pager",function(){d(this).hasClass(b.cssDisabled)||(b.page++,b.page>=Math.min(b.totalPages,b.filteredPages)-1&&(b.page=Math.min(b.totalPages, b.filteredPages)-1),h(e,b));return!1});d(b.cssPrev,g).unbind("click.pager").bind("click.pager",function(){d(this).hasClass(b.cssDisabled)||(b.page--,0>=b.page&&(b.page=0),h(e,b));return!1});d(b.cssLast,g).unbind("click.pager").bind("click.pager",function(){d(this).hasClass(b.cssDisabled)||(b.page=Math.min(b.totalPages,b.filteredPages)-1,h(e,b));return!1});d(b.cssPageSize,g).unbind("change.pager").bind("change.pager",function(){d(b.cssPageSize,g).val(d(this).val());d(this).hasClass(b.cssDisabled)|| (z(e,parseInt(d(this).val(),10),b),q(e,b));return!1});f.unbind("disable.pager enable.pager destroy.pager update.pager").bind("disable.pager",function(){y(e,b)}).bind("enable.pager",function(){A(e,b,!0)}).bind("destroy.pager",function(){y(e,b);d(b.container).hide();e.config.appender=null;d(e).unbind("destroy.pager sortEnd.pager filterEnd.pager enable.pager disable.pager")}).bind("update.pager",function(){n(e,b)})})}}});d.fn.extend({tablesorterPager:d.tablesorterPager.construct})})(jQuery); +/*! tablesorter pager plugin minified - updated 10/13/2012 */ +(function(d){d.extend({tablesorterPager:new function(){this.defaults={container:null,ajaxUrl:null,ajaxProcessing:function(){return[0,[],null]},output:"{startRow} to {endRow} of {totalRows} rows",updateArrows:!0,page:0,size:10,fixedHeight:!1,removeRows:!1,cssFirst:".first",cssPrev:".prev",cssNext:".next",cssLast:".last",cssGoto:".gotoPage",cssPageDisplay:".pagedisplay",cssPageSize:".pagesize",cssDisabled:"disabled",totalRows:0,totalPages:0,filteredRows:0,filteredPages:0};var p=this,r=function(c,b){var a= c.cssDisabled,e=!!b,f=Math.min(c.totalPages,c.filteredPages);c.updateArrows&&(d(c.cssFirst+","+c.cssPrev,c.container)[e||0===c.page?"addClass":"removeClass"](a),d(c.cssNext+","+c.cssLast,c.container)[e||c.page===f-1?"addClass":"removeClass"](a))},t=function(c,b){var a,e,f;a=d(c).hasClass("hasFilters");b.filteredRows=a?d(c).find("tbody tr:not(.filtered)").length:b.totalRows;b.filteredPages=a?Math.ceil(b.filteredRows/b.size):b.totalPages;if(0 b.filteredRows,b.startRow=f?1:b.size*b.page+1,b.page=f?0:b.page,b.endRow=Math.min(b.filteredRows,b.totalRows,b.size*(b.page+1)),e=d(b.cssPageDisplay,b.container),a=b.output.replace(/\{(page|filteredRows|filteredPages|totalPages|startRow|endRow|totalRows)\}/gi,function(a){return{"{page}":b.page+1,"{filteredRows}":b.filteredRows,"{filteredPages}":b.filteredPages,"{totalPages}":b.totalPages,"{startRow}":b.startRow,"{endRow}":b.endRow,"{totalRows}":b.totalRows}[a]}),e[0]&&(e["INPUT"===e[0].tagName?"val": "html"](a),d(b.cssGoto,b.container).length))){f="";e=Math.min(b.totalPages,b.filteredPages);for(a=1;a<=e;a++)f+="";d(b.cssGoto,b.container).html(f).val(b.page+1)}r(b);d(c).trigger("pagerComplete",b)},u=function(c,b){var a,e=d(c.tBodies[0]);if(b.fixedHeight&&(e.find("tr.pagerSavedHeightSpacer").remove(),a=d.data(c,"pagerSavedHeight")))a-=e.height(),5')},s=function(c,b){var a=d(c.tBodies[0]);a.find("tr.pagerSavedHeightSpacer").remove();d.data(c,"pagerSavedHeight",a.height());u(c,b);d.data(c,"pagerLastSize",b.size)},q=function(c,b){if(!b.ajaxUrl){var a,e=d("tr:not(."+c.config.cssChildRow+")",c.tBodies),f=e.length,g=b.page*b.size,i=g+b.size,h=0;for(a=0;a=g&&h'+(e?e.message+" ("+e.name+")":"No rows found")+"",k=a.ajaxProcessing(c)||[0,[]],v=k[1]||[],s=v.length,m=k[2];if(0";for(f=0;f"+v[c][f]+"";n+=""}m&&m.length===p&&(g=j.hasClass("hasStickyHeaders"),h=j.find("."+(l.widgetOptions&&l.widgetOptions.stickyHeaders||"tablesorter-stickyheader")),i=j.find("tfoot tr:first").children(),j.find("th."+l.cssHeader).each(function(b){var a=d(this),c;a.find("."+l.cssIcon).length?(c=a.find("."+l.cssIcon).clone(!0),a.find(".tablesorter-header-inner").html(m[b]).append(c),g&&h.length&&(c=h.find("th").eq(b).find("."+l.cssIcon).clone(!0),h.find("th").eq(b).find(".tablesorter-header-inner").html(m[b]).append(c))): (a.find(".tablesorter-header-inner").html(m[b]),h.find("th").eq(b).find(".tablesorter-header-inner").html(m[b]));i.eq(b).html(m[b]);g&&h.length&&(a=h.find("th").eq(b),a=a.find("span").length?a.find("span:first"):a,a.html(m[b]))}));e?j.find("thead").append(r):q.html(n);a.temp.remove();j.trigger("update");a.totalRows=k[0]||0;a.totalPages=Math.ceil(a.totalRows/a.size);t(b,a);u(b,a);j.trigger("pagerChange",a)}},y=function(c,b){var a=d(c),e=b.ajaxUrl.replace(/\{page\}/g,b.page).replace(/\{size\}/g,b.size); ""!==e&&(b.temp=d("
",{"class":"tablesorter-processing",width:a.outerWidth(!0),height:a.outerHeight(!0)}),a.before(b.temp),d(document).ajaxError(function(a,d,e,h){x(null,c,b,h)}),d.getJSON(e,function(a){x(a,c,b)}))},k=function(c,b,a){var e,f,g,k=document.createDocumentFragment(),h=b.length;e=a.page*a.size;var j=e+a.size;if(!(1>h)){d(c).trigger("pagerChange",a);if(a.removeRows){j>b.length&&(j=b.length);d(c.tBodies[0]).addClass("tablesorter-hidden");for(d.tablesorter.clearTableBody(c);e=a.totalPages&&(a.page=Math.min(a.totalPages,a.filteredPages)-1,i(c,a));t(c,a);a.isDisabled||u(c,a);d(c).trigger("applyWidgets")}},z=function(c,b){b.ajax?r(b,!0):(b.isDisabled=!0,d.data(c,"pagerLastPage",b.page),d.data(c,"pagerLastSize",b.size),b.page=0,b.size=b.totalRows,b.totalPages=1,d("tr.pagerSavedHeightSpacer",c.tBodies[0]).remove(),k(c,c.config.rowsCopy, b));d(b.cssPageSize,b.container).addClass(b.cssDisabled)[0].disabled=!0},i=function(c,b){if(!b.isDisabled){var a=Math.min(b.totalPages,b.filteredPages);if(0>b.page||b.page>a-1)b.page=0;d.data(c,"pagerLastPage",b.page);b.ajax?y(c,b):k(c,c.config.rowsCopy,b)}},A=function(c,b,a){a.size=b;d.data(c,"pagerLastPage",a.page);d.data(c,"pagerLastSize",a.size);a.totalPages=Math.ceil(a.totalRows/a.size);i(c,a)},B=function(c,b,a){var e=d(b.cssPageSize,b.container).removeClass(b.cssDisabled).removeAttr("disabled"); b.isDisabled=!1;b.page=d.data(c,"pagerLastPage")||b.page||0;b.size=d.data(c,"pagerLastSize")||parseInt(e.val(),10)||b.size;b.totalPages=Math.ceil(Math.min(b.totalPages,b.filteredPages)/b.size);a&&(d(c).trigger("update"),A(c,b.size,b),w(c,b),u(c,b))};p.appender=function(c,b){var a=c.config.pager;a.ajax||(c.config.rowsCopy=b,a.totalRows=b.length,a.size=d.data(c,"pagerLastSize")||a.size,a.totalPages=Math.ceil(a.totalRows/a.size),k(c,b,a))};p.construct=function(c){return this.each(function(){var b=this.config, a=b.pager=d.extend({},d.tablesorterPager.defaults,c),e=this,f=d(e),g=d(a.container).addClass("tablesorter-pager").show();b.appender=p.appender;B(e,a,!1);"string"===typeof a.ajaxUrl?(a.ajax=!0,y(e,a)):(a.ajax=!1,d(this).trigger("appendCache",!0),w(e,a));d(e).hasClass("hasFilters")&&d(e).unbind("filterEnd.pager").bind("filterEnd.pager",function(){a.page=0;t(e,a);i(e,a);s(e,a)});d(a.cssGoto,g).length&&(d(a.cssGoto,g).bind("change",function(){a.page=d(this).val()-1;i(e,a)}),t(e,a));d(a.cssFirst,g).unbind("click.pager").bind("click.pager", function(){d(this).hasClass(a.cssDisabled)||(a.page=0,i(e,a));return!1});d(a.cssNext,g).unbind("click.pager").bind("click.pager",function(){d(this).hasClass(a.cssDisabled)||(a.page++,a.page>=Math.min(a.totalPages,a.filteredPages)-1&&(a.page=Math.min(a.totalPages,a.filteredPages)-1),i(e,a));return!1});d(a.cssPrev,g).unbind("click.pager").bind("click.pager",function(){d(this).hasClass(a.cssDisabled)||(a.page--,0>=a.page&&(a.page=0),i(e,a));return!1});d(a.cssLast,g).unbind("click.pager").bind("click.pager", function(){d(this).hasClass(a.cssDisabled)||(a.page=Math.min(a.totalPages,a.filteredPages)-1,i(e,a));return!1});d(a.cssPageSize,g).unbind("change.pager").bind("change.pager",function(){d(a.cssPageSize,g).val(d(this).val());d(this).hasClass(a.cssDisabled)||(A(e,parseInt(d(this).val(),10),a),s(e,a));return!1});f.unbind("disable.pager enable.pager destroy.pager update.pager").bind("disable.pager",function(){z(e,a)}).bind("enable.pager",function(){B(e,a,!0)}).bind("destroy.pager",function(){z(e,a);d(a.container).hide(); e.config.appender=null;d(e).unbind("destroy.pager sortEnd.pager filterEnd.pager enable.pager disable.pager")}).bind("update.pager",function(){q(e,a)})})}}});d.fn.extend({tablesorterPager:d.tablesorterPager.construct})})(jQuery); diff --git a/docs/example-option-date-format.html b/docs/example-option-date-format.html index 0fcaadc3..ebd914fb 100644 --- a/docs/example-option-date-format.html +++ b/docs/example-option-date-format.html @@ -52,7 +52,7 @@
  • This date format parser will only work with a four digit year. You can write your own if you need a two digit year parser.
  • In versions 2.3+, columns can be disabled using any of the following methods (they all do the same thing), in order of priority:
      -
    • jQuery data data-date-format="mmddyyyy" (see the Javascript block below on how to set it directly; data-dateFormat is equivalent to data-data-format).
    • +
    • jQuery data data-date-format="mmddyyyy" (see the Javascript block below on how to set it directly; data-dateFormat is equivalent to data-date-format).
    • metadata class="{ dateFormat: "mmddyyyy" }". This requires the metadata plugin.
    • headers option headers : { 0 : { dateFormat: "mmddyyyy" } }.
    • header class name class="dateFormat-mmddyyyy".
    • diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index 558e7ee9..768ac8a3 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -1,5 +1,5 @@ /*! -* TableSorter 2.4.1 - Client-side table sorting with ease! +* TableSorter 2.4.2 - Client-side table sorting with ease! * @requires jQuery v1.2.6+ * * Copyright (c) 2007 Christian Bach diff --git a/js/jquery.tablesorter.min.js b/js/jquery.tablesorter.min.js index cc0527af..6fbc3d30 100644 --- a/js/jquery.tablesorter.min.js +++ b/js/jquery.tablesorter.min.js @@ -1,6 +1,6 @@ /*! -* TableSorter 2.4.1 - Client-side table sorting with ease! +* TableSorter 2.4.2 - Client-side table sorting with ease! * Minified using UglifyJS (http://jscompress.com/) * Copyright (c) 2007 Christian Bach */ -!function($){"use strict";$.extend({tablesorter:new function(){function log(a){if(typeof console!=="undefined"&&typeof console.log!=="undefined"){console.log(a)}else{alert(a)}}function benchmark(a,b){log(a+" ("+((new Date).getTime()-b.getTime())+"ms)")}function getElementText(a,b,c){if(!b){return""}var d=a.config,e=d.textExtraction,f="";if(e==="simple"){if(d.supportsTextContent){f=b.textContent}else{f=$(b).text()}}else{if(typeof e==="function"){f=e(b,a,c)}else if(typeof e==="object"&&e.hasOwnProperty(c)){f=e[c](b,a,c)}else{f=d.supportsTextContent?b.textContent:$(b).text()}}return $.trim(f)}function detectParserForColumn(a,b,c,d){var e,f=ts.parsers.length,g=false,h="",i=true;while(h===""&&i){c++;if(b[c]){g=b[c].cells[d];h=getElementText(a,g,d);if(a.config.debug){log("Checking if value was empty on row "+c+", column: "+d+": "+h)}}else{i=false}}for(e=1;e':"";this.innerHTML='
      '+this.innerHTML+e+"
      ";if(i.onRenderHeader){i.onRenderHeader.apply(d,[a])}this.column=b[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(ts.getData(d,c,"sortInitialOrder")||i.sortInitialOrder)?[1,0,2]:[0,1,2];this.count=-1;if(ts.getData(d,c,"sorter")==="false"){this.sortDisabled=true;d.addClass("sorter-false")}else{d.removeClass("sorter-false")}this.lockedOrder=false;f=ts.getData(d,c,"lockedOrder")||false;if(typeof f!=="undefined"&&f!==false){this.order=this.lockedOrder=formatSortingOrder(f)?[1,1,1]:[0,0,0]}d.addClass(this.sortDisabled?"sorter-false":i.cssHeader);i.headerList[a]=this;d.parent().addClass(i.cssHeaderRow)});if(a.config.debug){benchmark("Built headers:",g);log(h)}return h}function setHeadersCss(a,b){var c,d=[],e,f,g,h=a.config,i=h.sortList,j=[h.cssDesc,h.cssAsc],k=$(a).find("tfoot tr").children().removeClass(j.join(" "));b.removeClass(j.join(" "));g=i.length;for(e=0;e"),c=$(a).width();$("tr:first td",a.tBodies[0]).each(function(){b.append($("").css("width",parseInt($(this).width()/c*1e3,10)/10+"%"))});$(a).prepend(b)}}function updateHeaderSortCount(a,b){var c,d,e=a.config,f=e.headerList.length,g=b||e.sortList;e.sortList=[];$.each(g,function(a,b){c=[parseInt(b[0],10),parseInt(b[1],10)];d=e.headerList[c[0]];if(d){e.sortList.push(c);d.count=c[1]%(e.sortReset?3:2)}})}function getCachedSortType(a,b){return a&&a[b]?a[b].type||"":""}function multisort(table){var dynamicExp,sortWrapper,col,mx=0,dir=0,tc=table.config,sortList=tc.sortList,l=sortList.length,bl=table.tBodies.length,sortTime,i,j,k,c,cache,lc,s,e,order,orgOrderCol;if(tc.debug){sortTime=new Date}for(k=0;k thead th, > thead td",selectorSort:"th, td",selectorRemove:"tr.remove-me",debug:false,headerList:[],empties:{},strings:{},parsers:[]};ts.benchmark=benchmark;ts.construct=function(a){return this.each(function(){if(!this.tHead||this.tBodies.length===0||this.hasInitialized===true){return}var b,c,d=$(this),e,f,g,h="",i,j,k,l,m=$.metadata;this.hasInitialized=false;this.config={};e=$.extend(true,this.config,ts.defaults,a);$.data(this,"tablesorter",e);if(e.debug){$.data(this,"startoveralltimer",new Date)}e.supportsTextContent=$("x")[0].textContent==="x";e.supportsDataObject=parseFloat($.fn.jquery)>=1.4;e.string={max:1,min:-1,"max+":1,"max-":-1,zero:0,none:0,"null":0,top:true,bottom:false};if(!/tablesorter\-/.test(d.attr("class"))){h=e.theme!==""?" tablesorter-"+e.theme:""}d.addClass(e.tableClass+h);b=buildHeaders(this);e.parsers=buildParserCache(this,b);if(!e.delayInit){buildCache(this)}b.find("*").andSelf().filter(e.selectorSort).unbind("mousedown.tablesorter mouseup.tablesorter").bind("mousedown.tablesorter mouseup.tablesorter",function(a,c){var m=this.tagName.match("TH|TD")?$(this):$(this).parents("th, td").filter(":last"),n=m[0];if((a.which||a.button)!==1){return false}if(a.type==="mousedown"){l=(new Date).getTime();return a.target.tagName==="INPUT"?"":!e.cancelSelection}if(c!==true&&(new Date).getTime()-l>250){return false}if(e.delayInit&&!e.cache){buildCache(d[0])}if(!n.sortDisabled){d.trigger("sortStart",d[0]);h=!a[e.sortMultiSortKey];n.count=(n.count+1)%(e.sortReset?3:2);if(e.sortRestart){f=n;b.each(function(){if(this!==f&&(h||!$(this).is("."+e.cssDesc+",."+e.cssAsc))){this.count=-1}})}f=n.column;if(h){e.sortList=[];if(e.sortForce!==null){i=e.sortForce;for(g=0;g1){for(g=1;g1){if(ts.isValueInArray(e.sortAppend[0][0],e.sortList)){e.sortList.pop()}}if(ts.isValueInArray(f,e.sortList)){for(g=0;g1){for(g=1;g=0){h=k.eq(l).find("tr").index(m);i=b.cellIndex;g=j.config.cache[l].normalized[h].length-1;j.config.cache[l].row[j.config.cache[l].normalized[h][g]]=m;j.config.cache[l].normalized[h][i]=e.parsers[i].format(getElementText(j,b,i),j,b,i);checkResort(d,c,f)}}).bind("addRows",function(a,b,c,f){var h,i=b.filter("tr").length,j=[],k=b[0].cells.length,l=this,m=$(this).find("tbody").index(b.closest("tbody"));for(h=0;h0){d.trigger("sorton",[e.sortList,{},!e.initWidgets])}else if(e.initWidgets){ts.applyWidget(this)}fixColumnWidth(this);if(e.showProcessing){d.unbind("sortBegin sortEnd").bind("sortBegin sortEnd",function(a){ts.isProcessing(d[0],a.type==="sortBegin")})}this.hasInitialized=true;if(e.debug){ts.benchmark("Overall initialization time",$.data(this,"startoveralltimer"))}d.trigger("tablesorter-initialized",this);if(typeof e.initialized==="function"){e.initialized(this)}})};ts.isProcessing=function(a,b,c){var d=a.config,e=$(a).find("."+d.cssHeader);if(b){if(c){e=c}else if(d.sortList.length>0){e=e.filter(function(){return this.sortDisabled?false:ts.isValueInArray(parseFloat($(this).attr("data-column")),d.sortList)})}e.addClass(d.cssProcessing)}else{e.removeClass(d.cssProcessing)}};ts.processTbody=function(a,b,c){var d,e;if(c){b.before('');e=$.fn.detach?b.detach():b.remove();return e}e=$(a).find("span.tablesorter-savemyplace");b.insertAfter(e);e.remove()};ts.clearTableBody=function(a){$(a.tBodies).filter(":not(."+a.config.cssInfoBlock+")").empty()};ts.destroy=function(a,b,c){var d=$(a),e=a.config,f=d.find("thead:first");a.hasInitialized=false;f.find("tr:not(."+e.cssHeaderRow+")").remove();f.find(".tablesorter-resizer").remove();ts.refreshWidgets(a,true,true);d.removeData("tablesorter").unbind("update updateCell addRows sorton appendCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave").find("."+e.cssHeader).unbind("click mousedown mousemove mouseup").removeClass(e.cssHeader+" "+e.cssAsc+" "+e.cssDesc).find(".tablesorter-header-inner").each(function(){if(e.cssIcon!==""){$(this).find("."+e.cssIcon).remove()}$(this).replaceWith($(this).contents())});if(b!==false){d.removeClass(e.tableClass)}if(typeof c==="function"){c(a)}};ts.regex=[/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi,/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,/^0x[0-9a-f]+$/i];ts.sortText=function(a,b,c,d){if(b===c){return 0}var e=a.config,f=e.string[e.empties[d]||e.emptyTo],g=ts.regex,h,i,j,k,l,m,n,o;if(b===""&&f!==0){return typeof f==="boolean"?f?-1:1:-f||-1}if(c===""&&f!==0){return typeof f==="boolean"?f?1:-1:f||1}if(typeof e.textSorter==="function"){return e.textSorter(b,c,a,d)}h=b.replace(g[0],"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0");j=c.replace(g[0],"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0");i=parseInt(b.match(g[2]),16)||h.length!==1&&b.match(g[1])&&Date.parse(b);k=parseInt(c.match(g[2]),16)||i&&c.match(g[1])&&Date.parse(c)||null;if(k){if(ik){return 1}}o=Math.max(h.length,j.length);for(n=0;nm){return 1}}return 0};ts.sortTextDesc=function(a,b,c,d){if(b===c){return 0}var e=a.config,f=e.string[e.empties[d]||e.emptyTo];if(b===""&&f!==0){return typeof f==="boolean"?f?-1:1:f||1}if(c===""&&f!==0){return typeof f==="boolean"?f?1:-1:-f||-1}if(typeof e.textSorter==="function"){return e.textSorter(c,b,a,d)}return ts.sortText(a,c,b)};ts.getTextValue=function(a,b,c){if(b){var d,e=a.length,f=b+c;for(d=0;d=0){c.widgets.splice(g,1);c.widgets.push("zebra")}if(c.debug){f=new Date}for(g=0;g1){g=0;e=d.children("tr:visible");e.each(function(){f=$(this);if(!l.test(this.className)){g++}h=g%2===0;f.removeClass(c.zebra[h?1:0]).addClass(c.zebra[h?0:1])})}}if(b.debug){ts.benchmark("Applying Zebra widget",i)}},remove:function(a,b,c){var d,e,f=$(a).children("tbody:not(."+b.cssInfoBlock+")"),g=(b.widgetOptions.zebra||["even","odd"]).join(" ");for(d=0;d':"";this.innerHTML='
      '+this.innerHTML+e+"
      ";if(i.onRenderHeader){i.onRenderHeader.apply(d,[a])}this.column=b[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(ts.getData(d,c,"sortInitialOrder")||i.sortInitialOrder)?[1,0,2]:[0,1,2];this.count=-1;if(ts.getData(d,c,"sorter")==="false"){this.sortDisabled=true;d.addClass("sorter-false")}else{d.removeClass("sorter-false")}this.lockedOrder=false;f=ts.getData(d,c,"lockedOrder")||false;if(typeof f!=="undefined"&&f!==false){this.order=this.lockedOrder=formatSortingOrder(f)?[1,1,1]:[0,0,0]}d.addClass(this.sortDisabled?"sorter-false":i.cssHeader);i.headerList[a]=this;d.parent().addClass(i.cssHeaderRow)});if(a.config.debug){benchmark("Built headers:",g);log(h)}return h}function setHeadersCss(a,b){var c,d,e,f,g=a.config,h=g.sortList,i=[g.cssDesc,g.cssAsc],j=$(a).find("tfoot tr").children().removeClass(i.join(" "));b.removeClass(i.join(" "));f=h.length;for(d=0;d"),c=$(a).width();$("tr:first td",a.tBodies[0]).each(function(){b.append($("").css("width",parseInt($(this).width()/c*1e3,10)/10+"%"))});$(a).prepend(b)}}function updateHeaderSortCount(a,b){var c,d,e=a.config,f=e.headerList.length,g=b||e.sortList;e.sortList=[];$.each(g,function(a,b){c=[parseInt(b[0],10),parseInt(b[1],10)];d=e.headerList[c[0]];if(d){e.sortList.push(c);d.count=c[1]%(e.sortReset?3:2)}})}function getCachedSortType(a,b){return a&&a[b]?a[b].type||"":""}function multisort(table){var dynamicExp,sortWrapper,col,mx=0,dir=0,tc=table.config,sortList=tc.sortList,l=sortList.length,bl=table.tBodies.length,sortTime,i,j,k,c,cache,lc,s,e,order,orgOrderCol;if(tc.debug){sortTime=new Date}for(k=0;k thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:false,headerList:[],empties:{},strings:{},parsers:[]};ts.benchmark=benchmark;ts.construct=function(a){return this.each(function(){if(!this.tHead||this.tBodies.length===0||this.hasInitialized===true){return}var b,c,d=$(this),e,f,g,h="",i,j,k,l,m=$.metadata;this.hasInitialized=false;this.config={};e=$.extend(true,this.config,ts.defaults,a);$.data(this,"tablesorter",e);if(e.debug){$.data(this,"startoveralltimer",new Date)}e.supportsTextContent=$("x")[0].textContent==="x";e.supportsDataObject=parseFloat($.fn.jquery)>=1.4;e.string={max:1,min:-1,"max+":1,"max-":-1,zero:0,none:0,"null":0,top:true,bottom:false};if(!/tablesorter\-/.test(d.attr("class"))){h=e.theme!==""?" tablesorter-"+e.theme:""}d.addClass(e.tableClass+h);b=buildHeaders(this);e.parsers=buildParserCache(this,b);if(!e.delayInit){buildCache(this)}b.find("*").andSelf().filter(e.selectorSort).unbind("mousedown.tablesorter mouseup.tablesorter").bind("mousedown.tablesorter mouseup.tablesorter",function(a,c){var m=this.tagName.match("TH|TD")?$(this):$(this).parents("th, td").filter(":last"),n=m[0];if((a.which||a.button)!==1){return false}if(a.type==="mousedown"){l=(new Date).getTime();return a.target.tagName==="INPUT"?"":!e.cancelSelection}if(c!==true&&(new Date).getTime()-l>250){return false}if(e.delayInit&&!e.cache){buildCache(d[0])}if(!n.sortDisabled){d.trigger("sortStart",d[0]);h=!a[e.sortMultiSortKey];n.count=(n.count+1)%(e.sortReset?3:2);if(e.sortRestart){f=n;b.each(function(){if(this!==f&&(h||!$(this).is("."+e.cssDesc+",."+e.cssAsc))){this.count=-1}})}f=n.column;if(h){e.sortList=[];if(e.sortForce!==null){i=e.sortForce;for(g=0;g1){for(g=1;g1){if(ts.isValueInArray(e.sortAppend[0][0],e.sortList)){e.sortList.pop()}}if(ts.isValueInArray(f,e.sortList)){for(g=0;g1){for(g=1;g=0){h=k.eq(l).find("tr").index(m);i=b.cellIndex;g=j.config.cache[l].normalized[h].length-1;j.config.cache[l].row[j.config.cache[l].normalized[h][g]]=m;j.config.cache[l].normalized[h][i]=e.parsers[i].format(getElementText(j,b,i),j,b,i);checkResort(d,c,f)}}).bind("addRows",function(a,b,c,f){var h,i=b.filter("tr").length,j=[],k=b[0].cells.length,l=this,m=$(this).find("tbody").index(b.closest("tbody"));for(h=0;h0){d.trigger("sorton",[e.sortList,{},!e.initWidgets])}else if(e.initWidgets){ts.applyWidget(this)}fixColumnWidth(this);if(e.showProcessing){d.unbind("sortBegin sortEnd").bind("sortBegin sortEnd",function(a){ts.isProcessing(d[0],a.type==="sortBegin")})}this.hasInitialized=true;if(e.debug){ts.benchmark("Overall initialization time",$.data(this,"startoveralltimer"))}d.trigger("tablesorter-initialized",this);if(typeof e.initialized==="function"){e.initialized(this)}})};ts.isProcessing=function(a,b,c){var d=a.config,e=c||$(a).find("."+d.cssHeader);if(b){if(d.sortList.length>0){e=e.filter(function(){return this.sortDisabled?false:ts.isValueInArray(parseFloat($(this).attr("data-column")),d.sortList)})}e.addClass(d.cssProcessing)}else{e.removeClass(d.cssProcessing)}};ts.processTbody=function(a,b,c){var d,e;if(c){b.before('');e=$.fn.detach?b.detach():b.remove();return e}e=$(a).find("span.tablesorter-savemyplace");b.insertAfter(e);e.remove()};ts.clearTableBody=function(a){$(a.tBodies).filter(":not(."+a.config.cssInfoBlock+")").empty()};ts.destroy=function(a,b,c){var d=$(a),e=a.config,f=d.find("thead:first");a.hasInitialized=false;f.find("tr:not(."+e.cssHeaderRow+")").remove();f.find(".tablesorter-resizer").remove();ts.refreshWidgets(a,true,true);d.removeData("tablesorter").unbind("update updateCell addRows sorton appendCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave").find("."+e.cssHeader).unbind("click mousedown mousemove mouseup").removeClass(e.cssHeader+" "+e.cssAsc+" "+e.cssDesc).find(".tablesorter-header-inner").each(function(){if(e.cssIcon!==""){$(this).find("."+e.cssIcon).remove()}$(this).replaceWith($(this).contents())});if(b!==false){d.removeClass(e.tableClass)}if(typeof c==="function"){c(a)}};ts.regex=[/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi,/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,/^0x[0-9a-f]+$/i];ts.sortText=function(a,b,c,d){if(b===c){return 0}var e=a.config,f=e.string[e.empties[d]||e.emptyTo],g=ts.regex,h,i,j,k,l,m,n,o;if(b===""&&f!==0){return typeof f==="boolean"?f?-1:1:-f||-1}if(c===""&&f!==0){return typeof f==="boolean"?f?1:-1:f||1}if(typeof e.textSorter==="function"){return e.textSorter(b,c,a,d)}h=b.replace(g[0],"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0");j=c.replace(g[0],"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0");i=parseInt(b.match(g[2]),16)||h.length!==1&&b.match(g[1])&&Date.parse(b);k=parseInt(c.match(g[2]),16)||i&&c.match(g[1])&&Date.parse(c)||null;if(k){if(ik){return 1}}o=Math.max(h.length,j.length);for(n=0;nm){return 1}}return 0};ts.sortTextDesc=function(a,b,c,d){if(b===c){return 0}var e=a.config,f=e.string[e.empties[d]||e.emptyTo];if(b===""&&f!==0){return typeof f==="boolean"?f?-1:1:f||1}if(c===""&&f!==0){return typeof f==="boolean"?f?1:-1:-f||-1}if(typeof e.textSorter==="function"){return e.textSorter(c,b,a,d)}return ts.sortText(a,c,b)};ts.getTextValue=function(a,b,c){if(b){var d,e=a.length,f=b+c;for(d=0;d=0){c.widgets.splice(g,1);c.widgets.push("zebra")}if(c.debug){f=new Date}for(g=0;g1){g=0;e=d.children("tr:visible");e.each(function(){f=$(this);if(!l.test(this.className)){g++}h=g%2===0;f.removeClass(c.zebra[h?1:0]).addClass(c.zebra[h?0:1])})}}if(b.debug){ts.benchmark("Applying Zebra widget",i)}},remove:function(a,b,c){var d,e,f=$(a).children("tbody:not(."+b.cssInfoBlock+")"),g=(b.widgetOptions.zebra||["even","odd"]).join(" ");for(d=0;d
  • '),g.cssIcon&&n.find("."+g.cssIcon).addClass(j.icons),f.hasClass("hasFilters")&&n.find(".tablesorter-filter-row").addClass(j.filterRow);a.each(n,function(b){c=a(this);h=g.cssIcon?c.find("."+g.cssIcon):c;this.sortDisabled?(c.removeClass(r),h.removeClass(r+" tablesorter-icon "+j.icons)):(f.hasClass("hasStickyHeaders")&& f.find(q).find("th").eq(b).add(c),e=c.hasClass(g.cssAsc)?j.sortDesc:c.hasClass(g.cssDesc)?j.sortAsc:c.hasClass(g.cssHeader)?j.sortNone:"",c[e===j.sortNone?"removeClass":"addClass"](j.active),h.removeClass(r).addClass(e))});g.debug&&a.tablesorter.benchmark("Applying "+m+" theme",b)},remove:function(d,b,e){var d=a(d),c="object"===typeof e.uitheme?"jui":e.uitheme||"jui",e="object"===typeof e.uitheme?e.uitheme:a.tablesorter.themes[a.tablesorter.themes.hasOwnProperty(c)?c:"jui"],h=d.children("thead").children(), f=e.sortNone+" "+e.sortDesc+" "+e.sortAsc;d.removeClass("tablesorter-"+c+" "+e.table).find(b.cssHeader).removeClass(e.header);h.unbind("mouseenter mouseleave").removeClass(e.hover+" "+f+" "+e.active).find(".tablesorter-filter-row").removeClass(e.filterRow);h.find(".tablesorter-icon").removeClass(e.icons)}}); -a.tablesorter.addWidget({id:"columns",format:function(d){var b,e,c,h,f,g,l,m,j,n=a(d),q=d.config,r=q.widgetOptions,p=n.children("tbody:not(."+q.cssInfoBlock+")"),t=q.sortList,v=t.length,k=["primary", "secondary","tertiary"],k=q.widgetColumns&&q.widgetColumns.hasOwnProperty("css")?q.widgetColumns.css||k:r&&r.hasOwnProperty("columns")?r.columns||k:k;g=k.length-1;l=k.join(" ");q.debug&&(f=new Date);for(j=0;j=]/g],L=B.map(function(b){return z.getData?"parsed"===z.getData(B.filter('[data-column="'+b+'"]:last'),s.headers[b],"filter"):a(this).hasClass("filter-parsed")}).get(),G,H,C=function(b){var c=a.isArray(b),e=u.find("thead").eq(0).children("tr").find("select."+y+", input."+y),d=c?b:e.map(function(){return a(this).val()||""}).get(),f=(d|| []).join("");c&&e.each(function(c,d){a(d).val(b[c]||"")});!0===i.filter_hideFilters&&u.find(".tablesorter-filter-row").trigger(""===f?"mouseleave":"mouseenter");if(!(F===f&&!1!==b))if(u.trigger("filterStart",[d]),s.showProcessing)setTimeout(function(){I(b,d,f);return!1},30);else return I(b,d,f),!1},I=function(g,h,j){var p,n,q,r,x,w,y;s.debug&&(y=new Date);for(c=0;c]=?/.test(f)?(t=a.tablesorter.formatFloat(m.replace(A[5],""),d),isNaN(t)&&(t=m),v=a.tablesorter.formatFloat(f.replace(A[5],"").replace(A[6],""),d),/>/.test(f)&&(w=/>=/.test(f)?t>=v:t>v),/'+(B.filter('[data-column="'+b+'"]:last').attr("data-placeholder")||"")+"";for(c=0;c'+p[c]+"";u.find("thead").find("select."+y+'[data-column="'+b+'"]')[f?"html":"append"](g)},K=function(a){for(b=0;b';for(b=0;b":">")+"";u.find("thead").eq(0).append(k+="")}u.bind(["addRows","updateCell","update", "appendCache","search"].join(".tsfilter "),function(a,b){"search"!==a.type&&K(!0);C("search"===a.type?b:"");return!1}).find("input."+y).bind("keyup search",function(a,b){if(!(32>a.which&&8!==a.which||37<=a.which&&40>=a.which)){if("undefined"!==typeof b)return C(b),!1;clearTimeout(H);H=setTimeout(function(){C()},i.filter_searchDelay||300)}});i.filter_reset&&a(i.filter_reset).length&&a(i.filter_reset).bind("click",function(){u.find("."+y).val("");C();return!1});if(i.filter_functions)for(x in i.filter_functions)if(i.filter_functions.hasOwnProperty(x)&& "string"===typeof x)if(k=B.filter('[data-column="'+x+'"]:last'),g="",!0===i.filter_functions[x]&&!k.hasClass("filter-false"))J(x);else if("string"===typeof x&&!k.hasClass("filter-false")){for(n in i.filter_functions[x])"string"===typeof n&&(g+=""===g?'":"",g+='");u.find("thead").find("select."+y+'[data-column="'+x+'"]').append(g)}K();u.find("select."+y).bind("change search",function(){C()});!0===i.filter_hideFilters&& u.find(".tablesorter-filter-row").addClass("hideme").bind("mouseenter mouseleave",function(b){var c;q=a(this);clearTimeout(j);j=setTimeout(function(){/enter|over/.test(b.type)?q.removeClass("hideme"):a(document.activeElement).closest("tr")[0]!==q[0]&&(c=u.find("."+(i.filter_cssFilter||"tablesorter-filter")).map(function(){return a(this).val()||""}).get().join(""),""===c&&q.addClass("hideme"))},200)}).find("input, select").bind("focus blur",function(b){r=a(this).closest("tr");clearTimeout(j);j=setTimeout(function(){if(""=== u.find("."+(i.filter_cssFilter||"tablesorter-filter")).map(function(){return a(this).val()||""}).get().join(""))r["focus"===b.type?"removeClass":"addClass"]("hideme")},200)});s.showProcessing&&u.bind("filterStart filterEnd",function(b,c){var d=c?u.find("."+s.cssHeader).filter("[data-column]").filter(function(){return""!==c[a(this).data("column")]}):"";z.isProcessing(u[0],"filterStart"===b.type,c?d:"")});s.debug&&z.benchmark("Applying Filter widget",G);u.trigger("filterInit")}},remove:function(d,b, e){var c,h;c=a(d);b=c.children("tbody:not(."+b.cssInfoBlock+")");c.removeClass("hasFilters").unbind(["addRows","updateCell","update","appendCache","search"].join(".tsfilter")).find(".tablesorter-filter-row").remove();for(c=0;ca.top&&c
    ');h=h.slice(0,-1);f=f?f.add(h):h});f.each(function(){b= a(this);e=parseInt(b.css("padding-right"),10)+8;b.find(".tablesorter-wrapper").append('
    ')}).bind("mousemove.tsresize",function(a){if(0!==j&&n){var b=a.pageX-j;n.width(n.width()+b);q.width(q.width()-b);j=a.pageX}}).bind("mouseup.tsresize",function(){a.tablesorter.storage&&n&&(c[n.index()]=n.width(),c[q.index()]=q.width(),!1!==m.resizable&&a.tablesorter.storage(d,"tablesorter-resizable", c));r()}).find(".tablesorter-resizer").bind("mousedown",function(b){n=a(b.target).parents("th:last");q=n.next();j=b.pageX});g.find("thead:first").bind("mouseup.tsresize mouseleave.tsresize",function(){r()}).bind("contextmenu.tsresize",function(){a.tablesorter.resizableReset(d);var b=a.isEmptyObject?a.isEmptyObject(c):c==={};c={};return b})}},remove:function(d){a(d).removeClass("hasResizable").find("thead").unbind("mouseup.tsresize mouseleave.tsresize contextmenu.tsresize").find("tr").children().unbind("mousemove.tsresize mouseup.tsresize").find(".tablesorter-wrapper").each(function(){a(this).find(".tablesorter-resizer").remove(); a(this).replaceWith(a(this).contents())});a.tablesorter.resizableReset(d)}});a.tablesorter.resizableReset=function(d){a(d.config.headerList).width("auto");a.tablesorter.storage(d,"tablesorter-resizable",{})}; -a.tablesorter.addWidget({id:"saveSort",init:function(a,b){b.format(a,!0)},format:function(d,b){var e,c,h=d.config;e=!1!==h.widgetOptions.saveSort;var f={sortList:h.sortList};h.debug&&(c=new Date);a(d).hasClass("hasSaveSort")?e&&(d.hasInitialized&&a.tablesorter.storage)&&(a.tablesorter.storage(d, "tablesorter-savesort",f),h.debug&&a.tablesorter.benchmark("saveSort widget: Saving last sort: "+h.sortList,c)):(a(d).addClass("hasSaveSort"),f="",a.tablesorter.storage&&(f=(e=a.tablesorter.storage(d,"tablesorter-savesort"))&&e.hasOwnProperty("sortList")&&a.isArray(e.sortList)?e.sortList:"",h.debug&&a.tablesorter.benchmark('saveSort: Last sort loaded: "'+f+'"',c)),b&&f&&0'),g.cssIcon&&l.find("."+g.cssIcon).addClass(h.icons),f.hasClass("hasFilters")&&l.find(".tablesorter-filter-row").addClass(h.filterRow);a.each(l,function(b){c=a(this);i=g.cssIcon?c.find("."+g.cssIcon):c;this.sortDisabled?(c.removeClass(q),i.removeClass(q+" tablesorter-icon "+h.icons)):(f.hasClass("hasStickyHeaders")&& f.find(p).find("th").eq(b).add(c),e=c.hasClass(g.cssAsc)?h.sortDesc:c.hasClass(g.cssDesc)?h.sortAsc:c.hasClass(g.cssHeader)?h.sortNone:"",c[e===h.sortNone?"removeClass":"addClass"](h.active),i.removeClass(q).addClass(e))});g.debug&&a.tablesorter.benchmark("Applying "+n+" theme",b)},remove:function(d,b,e){var d=a(d),c="object"===typeof e.uitheme?"jui":e.uitheme||"jui",e="object"===typeof e.uitheme?e.uitheme:a.tablesorter.themes[a.tablesorter.themes.hasOwnProperty(c)?c:"jui"],i=d.children("thead").children(), f=e.sortNone+" "+e.sortDesc+" "+e.sortAsc;d.removeClass("tablesorter-"+c+" "+e.table).find(b.cssHeader).removeClass(e.header);i.unbind("mouseenter mouseleave").removeClass(e.hover+" "+f+" "+e.active).find(".tablesorter-filter-row").removeClass(e.filterRow);i.find(".tablesorter-icon").removeClass(e.icons)}}); +a.tablesorter.addWidget({id:"columns",format:function(d){var b,e,c,i,f,g,m,n,h,l=a(d),p=d.config,q=p.widgetOptions,s=l.children("tbody:not(."+p.cssInfoBlock+")"),t=p.sortList,v=t.length,k=["primary", "secondary","tertiary"],k=p.widgetColumns&&p.widgetColumns.hasOwnProperty("css")?p.widgetColumns.css||k:q&&q.hasOwnProperty("columns")?q.columns||k:k;g=k.length-1;m=k.join(" ");p.debug&&(f=new Date);for(h=0;h=]/g],L=B.map(function(b){return z.getData?"parsed"===z.getData(B.filter('[data-column="'+b+'"]:last'),r.headers[b],"filter"):a(this).hasClass("filter-parsed")}).get(),G,H,C=function(b){var c=a.isArray(b),e=u.find("thead").eq(0).children("tr").find("select."+y+", input."+y),d=c?b:e.map(function(){return a(this).val()||""}).get(),f=(d|| []).join("");c&&e.each(function(c,d){a(d).val(b[c]||"")});!0===j.filter_hideFilters&&u.find(".tablesorter-filter-row").trigger(""===f?"mouseleave":"mouseenter");if(!(F===f&&!1!==b))if(u.trigger("filterStart",[d]),r.showProcessing)setTimeout(function(){I(b,d,f);return!1},30);else return I(b,d,f),!1},I=function(g,i,h){var l,p,s,q,x,w,y;r.debug&&(y=new Date);for(c=0;c]=?/.test(f)?(t=a.tablesorter.formatFloat(n.replace(A[5],""),d),isNaN(t)&&(t=n),v=a.tablesorter.formatFloat(f.replace(A[5],"").replace(A[6],""),d),/>/.test(f)&&(w=/>=/.test(f)?t>=v:t>v),/'+(B.filter('[data-column="'+b+'"]:last').attr("data-placeholder")||"")+"";for(c=0;c'+h[c]+"";u.find("thead").find("select."+y+'[data-column="'+b+'"]')[f?"html":"append"](g)},K=function(a){for(b=0;b';for(b=0;b":">")+"";u.find("thead").eq(0).append(k+="")}u.bind(["addRows","updateCell","update", "appendCache","search"].join(".tsfilter "),function(a,b){"search"!==a.type&&K(!0);C("search"===a.type?b:"");return!1}).find("input."+y).bind("keyup search",function(a,b){if(!(32>a.which&&8!==a.which||37<=a.which&&40>=a.which)){if("undefined"!==typeof b)return C(b),!1;clearTimeout(H);H=setTimeout(function(){C()},j.filter_searchDelay||300)}});j.filter_reset&&a(j.filter_reset).length&&a(j.filter_reset).bind("click",function(){u.find("."+y).val("");C();return!1});if(j.filter_functions)for(x in j.filter_functions)if(j.filter_functions.hasOwnProperty(x)&& "string"===typeof x)if(k=B.filter('[data-column="'+x+'"]:last'),g="",!0===j.filter_functions[x]&&!k.hasClass("filter-false"))J(x);else if("string"===typeof x&&!k.hasClass("filter-false")){for(l in j.filter_functions[x])"string"===typeof l&&(g+=""===g?'":"",g+='");u.find("thead").find("select."+y+'[data-column="'+x+'"]').append(g)}K();u.find("select."+y).bind("change search",function(){C()});!0===j.filter_hideFilters&& u.find(".tablesorter-filter-row").addClass("hideme").bind("mouseenter mouseleave",function(b){var c;p=a(this);clearTimeout(h);h=setTimeout(function(){/enter|over/.test(b.type)?p.removeClass("hideme"):a(document.activeElement).closest("tr")[0]!==p[0]&&(c=u.find("."+(j.filter_cssFilter||"tablesorter-filter")).map(function(){return a(this).val()||""}).get().join(""),""===c&&p.addClass("hideme"))},200)}).find("input, select").bind("focus blur",function(b){q=a(this).closest("tr");clearTimeout(h);h=setTimeout(function(){if(""=== u.find("."+(j.filter_cssFilter||"tablesorter-filter")).map(function(){return a(this).val()||""}).get().join(""))q["focus"===b.type?"removeClass":"addClass"]("hideme")},200)});r.showProcessing&&u.bind("filterStart filterEnd",function(b,c){var d=c?u.find("."+r.cssHeader).filter("[data-column]").filter(function(){return""!==c[a(this).data("column")]}):"";z.isProcessing(u[0],"filterStart"===b.type,c?d:"")});r.debug&&z.benchmark("Applying Filter widget",G);u.trigger("filterInit")}},remove:function(d,b, e){var c,i;c=a(d);b=c.children("tbody:not(."+b.cssInfoBlock+")");c.removeClass("hasFilters").unbind(["addRows","updateCell","update","appendCache","search"].join(".tsfilter")).find(".tablesorter-filter-row").remove();for(c=0;ca.top&&c');i=i.slice(0, -1);f=f?f.add(i):i});f.each(function(){b=a(this);e=parseInt(b.css("padding-right"),10)+8;b.find(".tablesorter-wrapper").append('
    ')}).bind("mousemove.tsresize",function(a){if(0!==h&&l){var b=a.pageX-h;l.width(l.width()+b);p.width(p.width()-b);h=a.pageX}}).bind("mouseup.tsresize",function(){a.tablesorter.storage&&l&&(c[l.index()]=l.width(),c[p.index()]=p.width(),!1!== n.resizable&&a.tablesorter.storage(d,"tablesorter-resizable",c));q()}).find(".tablesorter-resizer").bind("mousedown",function(b){l=a(b.target).parents("th:last");p=l.next();h=b.pageX});g.find("thead:first").bind("mouseup.tsresize mouseleave.tsresize",function(){q()}).bind("contextmenu.tsresize",function(){a.tablesorter.resizableReset(d);var b=a.isEmptyObject?a.isEmptyObject(c):c==={};c={};return b})}},remove:function(d){a(d).removeClass("hasResizable").find("thead").unbind("mouseup.tsresize mouseleave.tsresize contextmenu.tsresize").find("tr").children().unbind("mousemove.tsresize mouseup.tsresize").find(".tablesorter-wrapper").each(function(){a(this).find(".tablesorter-resizer").remove(); a(this).replaceWith(a(this).contents())});a.tablesorter.resizableReset(d)}});a.tablesorter.resizableReset=function(d){a(d.config.headerList).width("auto");a.tablesorter.storage(d,"tablesorter-resizable",{})}; +a.tablesorter.addWidget({id:"saveSort",init:function(a,b){b.format(a,!0)},format:function(d,b){var e,c,i=d.config;e=!1!==i.widgetOptions.saveSort;var f={sortList:i.sortList};i.debug&&(c=new Date);a(d).hasClass("hasSaveSort")?e&&(d.hasInitialized&&a.tablesorter.storage)&&(a.tablesorter.storage(d, "tablesorter-savesort",f),i.debug&&a.tablesorter.benchmark("saveSort widget: Saving last sort: "+i.sortList,c)):(a(d).addClass("hasSaveSort"),f="",a.tablesorter.storage&&(f=(e=a.tablesorter.storage(d,"tablesorter-savesort"))&&e.hasOwnProperty("sortList")&&a.isArray(e.sortList)?e.sortList:"",i.debug&&a.tablesorter.benchmark('saveSort: Last sort loaded: "'+f+'"',c)),b&&f&&0