summaryrefslogtreecommitdiffstats
path: root/web/_static/tablesorter/js/widgets/widget-currentSort.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/_static/tablesorter/js/widgets/widget-currentSort.min.js')
-rw-r--r--web/_static/tablesorter/js/widgets/widget-currentSort.min.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/_static/tablesorter/js/widgets/widget-currentSort.min.js b/web/_static/tablesorter/js/widgets/widget-currentSort.min.js
new file mode 100644
index 0000000..b9f3845
--- /dev/null
+++ b/web/_static/tablesorter/js/widgets/widget-currentSort.min.js
@@ -0,0 +1,4 @@
+(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
+
+/*! Widget: currentSort - 7/31/2016 (v2.27.0) */
+!function(){"use strict";var i=jQuery.tablesorter;i.currentSortLanguage={0:"asc",1:"desc",2:"unsorted"},i.currentSort={init:function(t){t.$table.on("sortEnd.tscurrentSort",function(){i.currentSort.update(this.config)})},update:function(t){if(t){var r,n=t.widgetOptions,o=i.currentSortLanguage,e=o[2],c=Array.apply(null,Array(t.columns)).map(String.prototype.valueOf,e),u=t.sortList,a=u.length;for(r=0;r<a;r++)c[u[r][0]]=o[u[r][1]];t.currentSort=c,"function"==typeof n.currentSort_callback&&n.currentSort_callback(t,c)}}},i.addWidget({id:"currentSort",options:{currentSort_callback:null},init:function(t,r,n,o){i.currentSort.init(n,o)},remove:function(t,r){r.$table.off("sortEnd.tscurrentSort")}})}();return jQuery;}));