Index: lams_central/web/includes/javascript/jquery.tablesorter-pager.js
===================================================================
diff -u -r96624ae172b4b193603927a3d39c54572e0d6b4c -re83c1c350c7299b13070c44dd0cd288027d1be04
--- lams_central/web/includes/javascript/jquery.tablesorter-pager.js (.../jquery.tablesorter-pager.js) (revision 96624ae172b4b193603927a3d39c54572e0d6b4c)
+++ lams_central/web/includes/javascript/jquery.tablesorter-pager.js (.../jquery.tablesorter-pager.js) (revision e83c1c350c7299b13070c44dd0cd288027d1be04)
@@ -1,574 +1,2 @@
-/*!
- * tablesorter pager plugin
- * updated 2/20/2013
- */
-/*jshint browser:true, jquery:true, unused:false */
-;(function($) {
- "use strict";
- /*jshint supernew:true */
- $.extend({ tablesorterPager: new function() {
-
- this.defaults = {
- // target the pager markup
- container: null,
-
- // use this format: "http://mydatabase.com?page={page}&size={size}&{sortList:col}&{filterList:fcol}"
- // where {page} is replaced by the page number, {size} is replaced by the number of records to show,
- // {sortList:col} adds the sortList to the url into a "col" array, and {filterList:fcol} adds
- // the filterList to the url into an "fcol" array.
- // So a sortList = [[2,0],[3,0]] becomes "&col[2]=0&col[3]=0" in the url
- // and a filterList = [[2,Blue],[3,13]] becomes "&fcol[2]=Blue&fcol[3]=13" in the url
- ajaxUrl: null,
-
- // process ajax so that the following information is returned:
- // [ total_rows (number), rows (array of arrays), headers (array; optional) ]
- // example:
- // [
- // 100, // total rows
- // [
- // [ "row1cell1", "row1cell2", ... "row1cellN" ],
- // [ "row2cell1", "row2cell2", ... "row2cellN" ],
- // ...
- // [ "rowNcell1", "rowNcell2", ... "rowNcellN" ]
- // ],
- // [ "header1", "header2", ... "headerN" ] // optional
- // ]
- ajaxProcessing: function(ajax){ return [ 0, [], null ]; },
-
- // output default: '{page}/{totalPages}'
- // possible variables: {page}, {totalPages}, {filteredPages}, {startRow}, {endRow}, {filteredRows} and {totalRows}
- output: '{startRow} to {endRow} of {totalRows} rows', // '{page}/{totalPages}'
-
- // apply disabled classname to the pager arrows when the rows at either extreme is visible
- updateArrows: true,
-
- // starting page of the pager (zero based index)
- page: 0,
-
- // Number of visible rows
- size: 10,
-
- // if true, the table will remain the same height no matter how many records are displayed. The space is made up by an empty
- // table row set to a height to compensate; default is false
- fixedHeight: false,
-
- // remove rows from the table to speed up the sort of large tables.
- // setting this to false, only hides the non-visible rows; needed if you plan to add/remove rows with the pager enabled.
- removeRows: false, // removing rows in larger tables speeds up the sort
-
- // css class names of pager arrows
- cssFirst: '.first', // go to first page arrow
- cssPrev: '.prev', // previous page arrow
- cssNext: '.next', // next page arrow
- cssLast: '.last', // go to last page arrow
- cssGoto: '.gotoPage', // go to page selector - select dropdown that sets the current page
- cssPageDisplay: '.pagedisplay', // location of where the "output" is displayed
- cssPageSize: '.pagesize', // page size selector - select dropdown that sets the "size" option
- cssErrorRow: 'tablesorter-errorRow', // error information row
-
- // class added to arrows when at the extremes (i.e. prev/first arrows are "disabled" when on the first page)
- cssDisabled: 'disabled', // Note there is no period "." in front of this class name
-
- // stuff not set by the user
- totalRows: 0,
- totalPages: 0,
- filteredRows: 0,
- filteredPages: 0
-
- };
-
- var $this = this,
-
- // hide arrows at extremes
- pagerArrows = function(c, disable) {
- var a = 'addClass',
- r = 'removeClass',
- d = c.cssDisabled,
- dis = !!disable,
- tp = Math.min( c.totalPages, c.filteredPages );
- if ( c.updateArrows ) {
- $(c.cssFirst + ',' + c.cssPrev, c.container)[ ( dis || c.page === 0 ) ? a : r ](d);
- $(c.cssNext + ',' + c.cssLast, c.container)[ ( dis || c.page === tp - 1 ) ? a : r ](d);
- }
- },
-
- updatePageDisplay = function(table, c) {
- var i, p, s, t, out, f = $(table).hasClass('hasFilters') && !c.ajaxUrl;
- c.filteredRows = (f) ? table.config.$tbodies.children('tr:not(.filtered,.remove-me)').length : c.totalRows;
- c.filteredPages = (f) ? Math.ceil( c.filteredRows / c.size ) : c.totalPages;
- if ( Math.min( c.totalPages, c.filteredPages ) > 0 ) {
- t = (c.size * c.page > c.filteredRows);
- c.startRow = (t) ? 1 : ( c.size * c.page ) + 1;
- c.page = (t) ? 0 : c.page;
- c.endRow = Math.min( c.filteredRows, c.totalRows, c.size * ( c.page + 1 ) );
- out = $(c.cssPageDisplay, c.container);
- // form the output string
- s = c.output.replace(/\{(page|filteredRows|filteredPages|totalPages|startRow|endRow|totalRows)\}/gi, function(m){
- return {
- '{page}' : c.page + 1,
- '{filteredRows}' : c.filteredRows,
- '{filteredPages}' : c.filteredPages,
- '{totalPages}' : c.totalPages,
- '{startRow}' : c.startRow,
- '{endRow}' : c.endRow,
- '{totalRows}' : c.totalRows
- }[m];
- });
- if (out[0]) {
- out[ (out[0].tagName === 'INPUT') ? 'val' : 'html' ](s);
- if ( $(c.cssGoto, c.container).length ) {
- t = '';
- p = Math.min( c.totalPages, c.filteredPages );
- for ( i = 1; i <= p; i++ ) {
- t += '';
- }
- $(c.cssGoto, c.container).html(t).val(c.page + 1);
- }
- }
- }
- pagerArrows(c);
- if (c.initialized) { $(table).trigger('pagerComplete', c); }
- },
-
- fixHeight = function(table, c) {
- var d, h, $b = $(table.tBodies[0]);
- if (c.fixedHeight) {
- $b.find('tr.pagerSavedHeightSpacer').remove();
- h = $.data(table, 'pagerSavedHeight');
- if (h) {
- d = h - $b.height();
- if ( d > 5 && $.data(table, 'pagerLastSize') === c.size && $b.children('tr:visible').length < c.size ) {
- $b.append('