tablesorter/js/jquery.tablesorter.widgets.min.js
2013-02-17 13:29:02 -06:00

14 lines
19 KiB
JavaScript

/*! tableSorter 2.4+ widgets - updated 2/17/2013 */
;(function(b){
b.tablesorter=b.tablesorter||{};
b.tablesorter.themes={bootstrap:{table:"table table-bordered table-striped",header:"bootstrap-header",footerRow:"",footerCells:"",icons:"",sortNone:"bootstrap-icon-unsorted",sortAsc:"icon-chevron-up",sortDesc:"icon-chevron-down",active:"",hover:"",filterRow:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",header:"ui-widget-header ui-corner-all ui-state-default",footerRow:"",footerCells:"",icons:"ui-icon",sortNone:"ui-icon-carat-2-n-s", sortAsc:"ui-icon-carat-1-n",sortDesc:"ui-icon-carat-1-s",active:"ui-state-active",hover:"ui-state-hover",filterRow:"",even:"ui-widget-content",odd:"ui-state-default"}};
b.tablesorter.storage=function(c,a,d){var e,g=!1;e={};var f=c.id||b(".tablesorter").index(b(c)),l=window.location.pathname;try{g=!!localStorage.getItem}catch(n){}b.parseJSON&&(g?e=b.parseJSON(localStorage[a])||{}:(e=document.cookie.split(/[;\s|=]/),c=b.inArray(a,e)+1,e=0!==c?b.parseJSON(e[c])||{}:{}));if((d||""===d)&&window.JSON&&JSON.hasOwnProperty("stringify"))e[l]|| (e[l]={}),e[l][f]=d,g?localStorage[a]=JSON.stringify(e):(c=new Date,c.setTime(c.getTime()+31536E6),document.cookie=a+"="+JSON.stringify(e).replace(/\"/g,'"')+"; expires="+c.toGMTString()+"; path=/");else return e&&e[l]?e[l][f]:{}};
b.tablesorter.addWidget({id:"uitheme",format:function(c){var a,d,e,g,f=b.tablesorter.themes,l=b(c),n=c.config,m=n.widgetOptions,q="default"!==n.theme?n.theme:m.uitheme||"jui",h=f[f[q]?q:f[m.uitheme]?m.uitheme:"jui"],r=b(n.headerList),w="tr."+(m.stickyHeaders||"tablesorter-stickyHeader"), t=h.sortNone+" "+h.sortDesc+" "+h.sortAsc;n.debug&&(a=new Date);if(!l.hasClass("tablesorter-"+q)||n.theme===q||!c.hasInitialized)""!==h.even&&(m.zebra[0]+=" "+h.even),""!==h.odd&&(m.zebra[1]+=" "+h.odd),f=l.removeClass(""===n.theme?"":"tablesorter-"+n.theme).addClass("tablesorter-"+q+" "+h.table).find("tfoot"),f.length&&f.find("tr").addClass(h.footerRow).children("th, td").addClass(h.footerCells),r.addClass(h.header).filter(":not(.sorter-false)").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(a){b(this)["mouseenter"=== a.type?"addClass":"removeClass"](h.hover)}),r.find(".tablesorter-wrapper").length||r.wrapInner('<div class="tablesorter-wrapper" style="position:relative;height:100%;width:100%"></div>'),n.cssIcon&&r.find("."+n.cssIcon).addClass(h.icons),l.hasClass("hasFilters")&&r.find(".tablesorter-filter-row").addClass(h.filterRow);b.each(r,function(a){e=b(this);g=n.cssIcon?e.find("."+n.cssIcon):e;this.sortDisabled?(e.removeClass(t),g.removeClass(t+" tablesorter-icon "+h.icons)):(f=l.hasClass("hasStickyHeaders")? l.find(w).find("th").eq(a).add(e):e,d=e.hasClass(n.cssAsc)?h.sortAsc:e.hasClass(n.cssDesc)?h.sortDesc:e.hasClass(n.cssHeader)?h.sortNone:"",e[d===h.sortNone?"removeClass":"addClass"](h.active),g.removeClass(t).addClass(d))});n.debug&&b.tablesorter.benchmark("Applying "+q+" theme",a)},remove:function(c,a,d){c=b(c);var e="object"===typeof d.uitheme?"jui":d.uitheme||"jui";d="object"===typeof d.uitheme?d.uitheme:b.tablesorter.themes[b.tablesorter.themes.hasOwnProperty(e)?e:"jui"];var g=c.children("thead").children(), f=d.sortNone+" "+d.sortDesc+" "+d.sortAsc;c.removeClass("tablesorter-"+e+" "+d.table).find(a.cssHeader).removeClass(d.header);g.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(d.hover+" "+f+" "+d.active).find(".tablesorter-filter-row").removeClass(d.filterRow);g.find(".tablesorter-icon").removeClass(d.icons)}});
b.tablesorter.addWidget({id:"columns",format:function(c){var a,d,e,g,f,l,n,m,q,h=b(c),r=c.config,w=r.widgetOptions,t=r.$tbodies,k=r.sortList,u=k.length,s=["primary","secondary", "tertiary"],s=r.widgetColumns&&r.widgetColumns.hasOwnProperty("css")?r.widgetColumns.css||s:w&&w.hasOwnProperty("columns")?w.columns||s:s;l=s.length-1;n=s.join(" ");r.debug&&(f=new Date);for(q=0;q<t.length;q++)a=b.tablesorter.processTbody(c,t.eq(q),!0),d=a.children("tr"),d.each(function(){g=b(this);if("none"!==this.style.display&&(e=g.children().removeClass(n),k&&k[0]&&(e.eq(k[0][0]).addClass(s[0]),1<u)))for(m=1;m<u;m++)e.eq(k[m][0]).addClass(s[m]||s[l])}),b.tablesorter.processTbody(c,a,!1);d=!1!== w.columns_thead?"thead tr":"";!1!==w.columns_tfoot&&(d+=(""===d?"":",")+"tfoot tr");if(d.length&&(g=h.find(d).children().removeClass(n),k&&k[0]&&(g.filter('[data-column="'+k[0][0]+'"]').addClass(s[0]),1<u)))for(m=1;m<u;m++)g.filter('[data-column="'+k[m][0]+'"]').addClass(s[m]||s[l]);r.debug&&b.tablesorter.benchmark("Applying Columns widget",f)},remove:function(c,a){var d,e,g=a.$tbodies,f=(a.widgetOptions.columns||["primary","secondary","tertiary"]).join(" ");a.$headers.removeClass(f);b(c).children("tfoot").children("tr").children("th, td").removeClass(f); for(d=0;d<g.length;d++)e=b.tablesorter.processTbody(c,g.eq(d),!0),e.children("tr").each(function(){b(this).children().removeClass(f)}),b.tablesorter.processTbody(c,e,!1)}});
b.tablesorter.addWidget({id:"filter",format:function(c){if(c.config.parsers&&!b(c).hasClass("hasFilters")){var a,d,e,g,f,l,n,m,q,h,r,w,t,k,u,s,p,G,z,F=b.tablesorter.formatFloat,K="",C=b.tablesorter,v=c.config,D=b(v.headerList),j=v.widgetOptions,E=j.filter_cssFilter||"tablesorter-filter",y=b(c).addClass("hasFilters"),J=v.$tbodies, I=v.parsers.length,A=[/^\/((?:\\\/|[^\/])+)\/([mig]{0,3})?$/,RegExp(v.cssChildRow),/undefined|number/,/(^[\"|\'|=])|([\"|\'|=]$)/,/[\"\'=]/g,/[^\w,. \-()]/g,/[<>=]/g],L,M,N,H=function(a){var c=b.isArray(a),d=y.find("thead").eq(0).find(".tablesorter-filter-row").children(),e=c?a:d.map(function(a){a=b(this).find("select."+E+", input."+E);return a.length?a.val()||"":""}).get(),f=(e||[]).join("");c&&d.each(function(c,d){b(d).val(a[c]||"")});!0===j.filter_hideFilters&&y.find(".tablesorter-filter-row").trigger(""=== f?"mouseleave":"mouseenter");if(!(K===f&&!1!==a))if(y.trigger("filterStart",[e]),v.showProcessing)setTimeout(function(){O(a,e,f);return!1},30);else return O(a,e,f),!1},O=function(k,g,l){var h,r,q,t,w,x,G,B,z;v.debug&&(G=new Date);for(e=0;e<J.length;e++){k=b.tablesorter.processTbody(c,J.eq(e),!0);h=k.children("tr");w=h.length;if(""===l||j.filter_serversideFiltering)h.show().removeClass("filtered");else for(d=0;d<w;d++)if(!A[1].test(h[d].className)){t=!0;q=h.eq(d).nextUntil("tr:not(."+v.cssChildRow+ ")");p=q.length&&(j&&j.hasOwnProperty("filter_childRows")&&"undefined"!==typeof j.filter_childRows?j.filter_childRows:1)?q.text():"";p=j.filter_ignoreCase?p.toLocaleLowerCase():p;r=h.eq(d).children("td");for(a=0;a<I;a++)if(g[a]){n=j.filter_useParsedData||L[a]?v.cache[e].normalized[d][a]:b.trim(r.eq(a).text());m=!A[2].test(typeof n)&&j.filter_ignoreCase?n.toLocaleLowerCase():n;x=t;f=j.filter_ignoreCase?g[a].toLocaleLowerCase():g[a];if(j.filter_functions&&j.filter_functions[a])!0===j.filter_functions[a]? x=D.filter('[data-column="'+a+'"]:last').hasClass("filter-match")?0<=m.search(f):g[a]===n:"function"===typeof j.filter_functions[a]?x=j.filter_functions[a](n,v.cache[e].normalized[d][a],g[a],a):"function"===typeof j.filter_functions[a][g[a]]&&(x=j.filter_functions[a][g[a]](n,v.cache[e].normalized[d][a],g[a],a));else if(A[0].test(f)){u=A[0].exec(f);try{x=RegExp(u[1],u[2]).test(m)}catch(E){x=!1}}else if(A[3].test(f)&&m==f.replace(A[4],""))x=!0;else if(/^\!/.test(f))f=f.replace("!",""),s=m.search(b.trim(f)), x=""===f?!0:!(j.filter_startsWith?0===s:0<=s);else if(/^[<>]=?/.test(f))u=isNaN(m)?F(m.replace(A[5],""),c):F(m,c),s=F(f.replace(A[5],"").replace(A[6],""),c),/>/.test(f)&&(x=/>=/.test(f)?u>=s:u>s),/</.test(f)&&(x=/<=/.test(f)?u<=s:u<s),""===s&&(x=!0);else if(/\s+(AND|&&)\s+/g.test(g[a])){s=f.split(/(?:\s+(?:and|&&)\s+)/g);x=0<=m.search(b.trim(s[0]));for(B=s.length-1;x&&B;)x=x&&0<=m.search(b.trim(s[B])),B--}else/\s+(-|to)\s+/.test(f)?(u=isNaN(m)?F(m.replace(A[5],""),c):F(m,c),s=f.split(/(?: - | to )/), B=F(s[0].replace(A[5],""),c),z=F(s[1].replace(A[5],""),c),B>z&&(x=B,B=z,z=x),x=u>=B&&u<=z||""===B||""===z?!0:!1):/[\?|\*]/.test(f)||/\s+OR\s+/.test(g[a])?x=RegExp(f.replace(/\s+or\s+/gi,"|").replace(/\?/g,"\\S{1}").replace(/\*/g,"\\S*")).test(m):(n=(m+p).indexOf(f),x=!j.filter_startsWith&&0<=n||j.filter_startsWith&&0===n);t=x?t?!0:!1:!1}h[d].style.display=t?"":"none";h.eq(d)[t?"removeClass":"addClass"]("filtered");if(q.length)q[t?"show":"hide"]()}b.tablesorter.processTbody(c,k,!1)}K=l;v.debug&&C.benchmark("Completed filter widget search", G);y.trigger("applyWidgets");y.trigger("filterEnd")},P=function(a,f){var k,h=[];a=parseInt(a,10);k='<option value="">'+(D.filter('[data-column="'+a+'"]:last').attr("data-placeholder")||"")+"</option>";for(e=0;e<J.length;e++){g=v.cache[e].row.length;for(d=0;d<g;d++)j.filter_useParsedData?h.push(""+v.cache[e].normalized[d][a]):(p=v.cache[e].row[d][0].cells[a])&&h.push(b.trim(v.supportsTextContent?p.textContent:b(p).text()))}h=b.grep(h,function(a,c){return b.inArray(a,h)===c});h=C.sortText?h.sort(function(b, d){return C.sortText(c,b,d,a)}):h.sort(!0);for(e=0;e<h.length;e++)k+='<option value="'+h[e]+'">'+h[e]+"</option>";y.find("thead").find("select."+E+'[data-column="'+a+'"]')[f?"html":"append"](k)},Q=function(b){for(a=0;a<I;a++)if(p=D.filter('[data-column="'+a+'"]:last'),(p.hasClass("filter-select")||j.filter_functions&&!0===j.filter_functions[a])&&!p.hasClass("filter-false"))j.filter_functions||(j.filter_functions={}),j.filter_functions[a]=!0,P(a,b)};v.debug&&(M=new Date);j.filter_ignoreCase=!1!==j.filter_ignoreCase; j.filter_useParsedData=!0===j.filter_useParsedData;if(!1!==j.filter_columnFilters&&D.filter(".filter-false").length!==D.length){p='<tr class="tablesorter-filter-row">';for(a=0;a<I;a++)p+="<td></td>";k=y.find("thead").eq(0).append(p+="</tr>").find("td");for(a=0;a<I;a++)G=!1,t=D.filter('[data-column="'+a+'"]:last'),l=j.filter_functions&&j.filter_functions[a]&&"function"!==typeof j.filter_functions[a]||t.hasClass("filter-select"),G=C.getData?"false"===C.getData(t[0],v.headers[a],"filter"):v.headers[a]&& v.headers[a].hasOwnProperty("filter")&&!1===v.headers[a].filter||t.hasClass("filter-false"),l?p=b("<select>").appendTo(k.eq(a)):(j.filter_formatter&&b.isFunction(j.filter_formatter[a])?((p=j.filter_formatter[a](k.eq(a),a))&&0===p.length&&(p=k.eq(a).children("input")),p&&(0===p.parent().length||p.parent().length&&p.parent()[0]!==k[a])&&k.eq(a).append(p)):p=b('<input type="search">').appendTo(k.eq(a)),p&&p.attr("placeholder",t.attr("data-placeholder")||"")),p&&(p.addClass(E).attr("data-column",a),G&& (p.addClass("disabled")[0].disabled=!0))}y.bind("addRows updateCell update updateRows appendCache filterReset search ".split(" ").join(".tsfilter "),function(a,b){/(search|filterReset)/.test(a.type)||Q(!0);"filterReset"===a.type&&y.find("."+E).val("");H("search"===a.type?b:"");return!1}).find("input."+E).bind("keyup search",function(a,b){if(!(32>a.which&&8!==a.which||37<=a.which&&40>=a.which)){if("undefined"!==typeof b)return H(b),!1;clearTimeout(N);N=setTimeout(function(){H()},j.filter_searchDelay|| 300)}});L=D.map(function(a){return C.getData?"parsed"===C.getData(D.filter('[data-column="'+a+'"]:last'),v.headers[a],"filter"):b(this).hasClass("filter-parsed")}).get();j.filter_reset&&b(j.filter_reset).length&&b(j.filter_reset).bind("click.tsfilter",function(){y.trigger("filterReset")});if(j.filter_functions)for(z in j.filter_functions)if(j.filter_functions.hasOwnProperty(z)&&"string"===typeof z)if(p=D.filter('[data-column="'+z+'"]:last'),l="",!0===j.filter_functions[z]&&!p.hasClass("filter-false"))P(z); else if("string"===typeof z&&!p.hasClass("filter-false")){for(h in j.filter_functions[z])"string"===typeof h&&(l+=""===l?'<option value="">'+(p.attr("data-placeholder")||"")+"</option>":"",l+='<option value="'+h+'">'+h+"</option>");y.find("thead").find("select."+E+'[data-column="'+z+'"]').append(l)}Q(!0);y.find("select."+E).bind("change search",function(){H()});!0===j.filter_hideFilters&&y.find(".tablesorter-filter-row").addClass("hideme").bind("mouseenter mouseleave",function(a){var c;r=b(this); clearTimeout(q);q=setTimeout(function(){/enter|over/.test(a.type)?r.removeClass("hideme"):b(document.activeElement).closest("tr")[0]!==r[0]&&(c=y.find("."+(j.filter_cssFilter||"tablesorter-filter")).map(function(){return b(this).val()||""}).get().join(""),""===c&&r.addClass("hideme"))},200)}).find("input, select").bind("focus blur",function(a){w=b(this).closest("tr");clearTimeout(q);q=setTimeout(function(){if(""===y.find("."+(j.filter_cssFilter||"tablesorter-filter")).map(function(){return b(this).val()|| ""}).get().join(""))w["focus"===a.type?"removeClass":"addClass"]("hideme")},200)});v.showProcessing&&y.bind("filterStart.tsfilter filterEnd.tsfilter",function(a,c){var d=c?y.find("."+v.cssHeader).filter("[data-column]").filter(function(){return""!==c[b(this).data("column")]}):"";C.isProcessing(y[0],"filterStart"===a.type,c?d:"")});v.debug&&C.benchmark("Applying Filter widget",M);y.trigger("filterInit");H()}},remove:function(c,a,d){var e,g;e=b(c);a=a.$tbodies;e.removeClass("hasFilters").unbind("addRows updateCell update appendCache search filterStart filterEnd ".split(" ").join(".tsfilter ")).find(".tablesorter-filter-row").remove(); for(e=0;e<a.length;e++)g=b.tablesorter.processTbody(c,a.eq(e),!0),g.children().removeClass("filtered").show(),b.tablesorter.processTbody(c,g,!1);d.filterreset&&b(d.filter_reset).unbind("click.tsfilter")}});
b.tablesorter.addWidget({id:"stickyHeaders",format:function(c){if(!b(c).hasClass("hasStickyHeaders")){var a=b(c).addClass("hasStickyHeaders"),d=c.config,e=d.widgetOptions,g=b(window),f=b(c).children("thead:first"),l=f.children("tr:not(.sticky-false)").children();c=e.stickyHeaders||"tablesorter-stickyHeader"; var n=l.eq(0).parent(),m=a.find("tfoot"),e=e.$sticky=a.clone(),q=e.children("thead:first").addClass(c).css({width:f.outerWidth(!0),position:"fixed",margin:0,top:0,visibility:"hidden",zIndex:1}),h=q.children("tr:not(.sticky-false)").children(),r="",w=0,t=function(){var c=navigator.userAgent;w=0;"collapse"!==a.css("border-collapse")&&!/(webkit|msie)/i.test(c)&&(w=2*parseInt(l.eq(0).css("border-left-width"),10));q.css({left:f.offset().left-g.scrollLeft()-w,width:f.outerWidth()});h.each(function(a){a= l.eq(a);b(this).css({width:a.width()-w,height:a.height()})}).find(".tablesorter-header-inner").each(function(a){a=l.eq(a).find(".tablesorter-header-inner").width();b(this).width(a)})};e.find("thead:gt(0),tr.sticky-false,tbody,tfoot,caption").remove();e.css({height:0,width:0,padding:0,margin:0,border:0});q.find("tr.sticky-false").remove();h.find(".tablesorter-resizer").remove();a.bind("sortEnd.tsSticky",function(){l.each(function(a){a=h.eq(a);a.attr("class",b(this).attr("class"));d.cssIcon&&a.find("."+ d.cssIcon).attr("class",b(this).find("."+d.cssIcon).attr("class"))})}).bind("pagerComplete.tsSticky",function(){t()});l.find("*")[b.fn.addBack?"addBack":"andSelf"]().filter(d.selectorSort).each(function(a){var c=b(this);h.eq(a).bind("mouseup",function(a){c.trigger(a,!0)}).bind("mousedown",function(){this.onselectstart=function(){return!1};return!1})});a.after(e);g.bind("scroll.tsSticky",function(){var b=n.offset(),c=g.scrollTop(),d=a.height()-(q.height()+(m.height()||0)),b=c>b.top&&c<b.top+d?"visible": "hidden";q.css({left:f.offset().left-g.scrollLeft()-w,visibility:b});b!==r&&(t(),r=b)}).bind("resize.tsSticky",function(){t()})}},remove:function(c,a,d){c=b(c);a=d.stickyHeaders||"tablesorter-stickyHeader";c.removeClass("hasStickyHeaders").unbind("sortEnd.tsSticky pagerComplete.tsSticky").find("."+a).remove();d.$sticky&&d.$sticky.remove();b(window).unbind("scroll.tsSticky resize.tsSticky")}});
b.tablesorter.addWidget({id:"resizable",format:function(c){if(!b(c).hasClass("hasResizable")){b(c).addClass("hasResizable"); var a,d,e,g,f,l,n,m,q,h=b(c),r=c.config,w=r.widgetOptions,t=0,k=null,u=null,s=20>Math.abs(h.parent().width()-h.width()),p=function(){b.tablesorter.storage&&k&&(f[k.index()]=k.width(),f[u.index()]=u.width(),k.width(f[k.index()]),u.width(f[u.index()]),!1!==w.resizable&&b.tablesorter.storage(c,"tablesorter-resizable",f));t=0;k=u=null;b(window).trigger("resize")};if(f=b.tablesorter.storage&&!1!==w.resizable?b.tablesorter.storage(c,"tablesorter-resizable"):{})for(g in f)!isNaN(g)&&g<r.headerList.length&& b(r.headerList[g]).width(f[g]);a=h.children("thead:first").children("tr");a.children().each(function(){d=b(this);e=d.attr("data-column");g="false"===b.tablesorter.getData(d,r.headers[e],"resizable");a.children().filter('[data-column="'+e+'"]').toggleClass("resizable-false",g)});a.each(function(){l=b(this).children(":not(.resizable-false)");b(this).find(".tablesorter-wrapper").length||l.wrapInner('<div class="tablesorter-wrapper" style="position:relative;height:100%;width:100%"></div>');l=l.slice(0, -1);n=n?n.add(l):l});n.each(function(){a=b(this);g=parseInt(a.css("padding-right"),10)+10;d='<div class="tablesorter-resizer" style="cursor:w-resize;position:absolute;z-index:1;right:-'+g+'px;top:0;height:100%;width:20px;"></div>';a.find(".tablesorter-wrapper").append(d)}).bind("mousemove.tsresize",function(a){0!==t&&k&&(m=a.pageX-t,q=k.width(),k.width(q+m),k.width()!==q&&s&&u.width(u.width()-m),t=a.pageX)}).bind("mouseup.tsresize",function(){p()}).find(".tablesorter-resizer,.tablesorter-resizer-grip").bind("mousedown", function(a){k=b(a.target).closest("th");d=r.$headers.filter('[data-column="'+k.attr("data-column")+'"]');1<d.length&&(k=k.add(d));u=a.shiftKey?k.parent().find("th:not(.resizable-false)").filter(":last"):k.nextAll(":not(.resizable-false)").eq(0);t=a.pageX});h.find("thead:first").bind("mouseup.tsresize mouseleave.tsresize",function(){p()}).bind("contextmenu.tsresize",function(){b.tablesorter.resizableReset(c);var a=b.isEmptyObject?b.isEmptyObject(f):f==={};f={};return a})}},remove:function(c){b(c).removeClass("hasResizable").find("thead").unbind("mouseup.tsresize mouseleave.tsresize contextmenu.tsresize").find("tr").children().unbind("mousemove.tsresize mouseup.tsresize").find(".tablesorter-resizer,.tablesorter-resizer-grip").remove(); b.tablesorter.resizableReset(c)}});
b.tablesorter.resizableReset=function(c){b(c.config.headerList).filter(":not(.resizable-false)").css("width","");b.tablesorter.storage&&b.tablesorter.storage(c,"tablesorter-resizable",{})};
b.tablesorter.addWidget({id:"saveSort",init:function(b,a){a.format(b,!0)},format:function(c,a){var d,e,g=c.config;d=!1!==g.widgetOptions.saveSort;var f={sortList:g.sortList};g.debug&&(e=new Date);b(c).hasClass("hasSaveSort")?d&&(c.hasInitialized&&b.tablesorter.storage)&&(b.tablesorter.storage(c, "tablesorter-savesort",f),g.debug&&b.tablesorter.benchmark("saveSort widget: Saving last sort: "+g.sortList,e)):(b(c).addClass("hasSaveSort"),f="",b.tablesorter.storage&&(f=(d=b.tablesorter.storage(c,"tablesorter-savesort"))&&d.hasOwnProperty("sortList")&&b.isArray(d.sortList)?d.sortList:"",g.debug&&b.tablesorter.benchmark('saveSort: Last sort loaded: "'+f+'"',e)),a&&f&&0<f.length?g.sortList=f:c.hasInitialized&&(f&&0<f.length)&&b(c).trigger("sorton",[f]))},remove:function(c){b.tablesorter.storage&& b.tablesorter.storage(c,"tablesorter-savesort","")}})
})(jQuery);