jquery-tablesorter 1.19.1 → 1.19.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 446f8d7b2bb21b67d4dfd395af69341cdab74409
4
- data.tar.gz: 828e93701510f4ccfa80efede6a3ede377a0b332
3
+ metadata.gz: 6e7479bd99a86ae571bd8c5ea0a01aa8e80cbecf
4
+ data.tar.gz: 01ff317a28d4611f603ab47d52b7c7342f2f8aef
5
5
  SHA512:
6
- metadata.gz: 408631aded81242d22fe3de7107b66498bb88aa40c1a9e9fd198a82e336849743896831ef3d94765653400c16b0436f545947e4740b3d3f80b6834349c0147be
7
- data.tar.gz: 42a197a6182f37133bd0ab0afb04f2edba9f04eb2ddd53a37d8df4eba6e6186257543c6bf7ce561cddf257b271be5e006912da3121fd0f4e0ba22f9dae254885
6
+ metadata.gz: bdc61297bced66dabcb1b765ec4eef9605312a3df64620c816e4e3f41b5857093b463b602ed1e00721d84d5aeaf8e74967c22ecdd13e12e32416669d810b66dc
7
+ data.tar.gz: bd69883614b59704957ba1219bf34fc3998e74a01c1812c6e3652a9877fdee20aae3d2d7fe8b2615dabb9b3a23a2ce52f8327053ed4984f09deb32a7e6cc565e
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Simple integration of jquery-tablesorter into the asset pipeline.
6
6
 
7
- Current tablesorter version: 2.24.3 (11/4/2015), [documentation]
7
+ Current tablesorter version: 2.24.4 (11/10/2015), [documentation]
8
8
 
9
9
  Any issue associated with the js/css files, please report to [Mottie's fork].
10
10
 
@@ -1,3 +1,3 @@
1
1
  module JqueryTablesorter
2
- VERSION = '1.19.1'
2
+ VERSION = '1.19.2'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * tablesorter (FORK) pager plugin
3
- * updated 10/31/2015 (v2.24.0)
3
+ * updated 11/10/2015 (v2.24.4)
4
4
  */
5
5
  /*jshint browser:true, jquery:true, unused:false */
6
6
  ;(function($) {
@@ -54,7 +54,8 @@
54
54
  ajaxProcessing: function(ajax){ return [ 0, [], null ]; },
55
55
 
56
56
  // output default: '{page}/{totalPages}'
57
- // possible variables: {page}, {totalPages}, {filteredPages}, {startRow}, {endRow}, {filteredRows} and {totalRows}
57
+ // possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow},
58
+ // {endRow}, {filteredRows} and {totalRows}
58
59
  output: '{startRow} to {endRow} of {totalRows} rows', // '{page}/{totalPages}'
59
60
 
60
61
  // apply disabled classname to the pager arrows when the rows at either extreme is visible
@@ -384,6 +385,12 @@
384
385
  renderAjax = function(data, table, p, xhr, settings, exception){
385
386
  // process data
386
387
  if ( typeof p.ajaxProcessing === 'function' ) {
388
+
389
+ // in case nothing is returned by ajax, empty out the table; see #1032
390
+ // but do it before calling pager_ajaxProcessing because that function may add content
391
+ // directly to the table
392
+ c.$tbodies.eq(0).empty();
393
+
387
394
  // ajaxProcessing result: [ total, rows, headers ]
388
395
  var i, j, t, hsh, $f, $sh, $headers, $h, icon, th, d, l, rr_count, len,
389
396
  c = table.config,
@@ -443,9 +450,6 @@
443
450
  if (p.processAjaxOnInit) {
444
451
  c.$tbodies.eq(0).html( tds );
445
452
  }
446
- } else {
447
- // nothing returned by ajax, empty out the table; see #1032
448
- c.$tbodies.eq(0).empty();
449
453
  }
450
454
  p.processAjaxOnInit = true;
451
455
  // only add new header text if the length matches