jquery-tablesorter 1.10.6 → 1.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d3adc7a7db442e6adb168ea1823bad3a8a6e536
4
- data.tar.gz: d33937ddb41d6bd2d398596f27b64280f165cf56
3
+ metadata.gz: 5130db03709c4bc71cd6478decaef113fc7f3474
4
+ data.tar.gz: 55da5bc1ddff917278abda02f4c4a9f5989e864c
5
5
  SHA512:
6
- metadata.gz: c61b8896dbc3dc199ace46e1e994c731e5adac2c8c8c9654265074ebb165f247a0256e6c96f749a253a64ba62a49ca2f11245304b56e4196974d9edead32d0c1
7
- data.tar.gz: a74201f992bc577663ba977a40732909b2f2fe569750b4d25666d100a28d49e48d3c289609a559f462e213d4ef649aa409c6790ed93edfd768f9dc46ffed8f15
6
+ metadata.gz: 7d87ee353472c3ddc5a136c5bdb3cc0c6fcb32c0e28c2e7628d8d55153e41893e6d58d62b2160e8f7ce929e64e94bb34bb073e4f7a388275aac0a733cb498460
7
+ data.tar.gz: 9b074256f38d0874253d8a3ada75d643011eb71627f2e5938b7a495e58b1369c2480d9dbd0f86f8979698105ae2dcbf3b5becae2dde939485fbdde77faa197ac
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.15.10 (3/13/2014), [documentation]
7
+ Current tablesorter version: 2.15.11 (3/18/2014), [documentation]
8
8
 
9
9
  Any issue associate with the js/css files, please report to [Mottie's fork].
10
10
 
@@ -1,3 +1,3 @@
1
1
  module JqueryTablesorter
2
- VERSION = '1.10.6'
2
+ VERSION = '1.10.7'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * tablesorter pager plugin
3
- * updated 3/7/2014 (v2.15.6)
3
+ * updated 3/18/2014 (v2.15.11)
4
4
  */
5
5
  /*jshint browser:true, jquery:true, unused:false */
6
6
  ;(function($) {
@@ -542,6 +542,7 @@
542
542
  $.data(table, 'pagerLastPage', p.page);
543
543
  $.data(table, 'pagerLastSize', p.size);
544
544
  p.totalPages = Math.ceil( p.totalRows / p.size );
545
+ p.filteredPages = Math.ceil( p.filteredRows / p.size );
545
546
  moveToPage(table, p);
546
547
  },
547
548
 
@@ -1,5 +1,5 @@
1
1
  /**!
2
- * TableSorter 2.15.10 - Client-side table sorting with ease!
2
+ * TableSorter 2.15.11 - Client-side table sorting with ease!
3
3
  * @requires jQuery v1.2.6+
4
4
  *
5
5
  * Copyright (c) 2007 Christian Bach
@@ -24,7 +24,7 @@
24
24
 
25
25
  var ts = this;
26
26
 
27
- ts.version = "2.15.10";
27
+ ts.version = "2.15.11";
28
28
 
29
29
  ts.parsers = [];
30
30
  ts.widgets = [];
@@ -296,6 +296,12 @@
296
296
  }
297
297
  tc.cache[k].row.push(c);
298
298
  for (j = 0; j < totalCells; ++j) {
299
+ if (typeof parsers[j] === 'undefined') {
300
+ if (tc.debug) {
301
+ log('No parser found for cell:', c[0].cells[j], 'does it have a header?');
302
+ }
303
+ continue;
304
+ }
299
305
  t = getElementText(table, c[0].cells[j], j);
300
306
  // allow parsing if the string is empty, previously parsing would change it to zero,
301
307
  // in case the parser needs to extract data from the table cell attributes
@@ -381,7 +387,7 @@
381
387
  var matrix = [],
382
388
  lookup = {},
383
389
  cols = 0, // determine the number of columns
384
- trs = $(t).find('thead:eq(0), tfoot').children('tr'), // children tr in tfoot - see issue #196
390
+ trs = $(t).children('thead, tfoot').children('tr'), // children tr in tfoot - see issue #196 & #547
385
391
  i, j, k, l, c, cells, rowIndex, cellId, rowSpan, colSpan, firstAvailCol, matrixrow;
386
392
  for (i = 0; i < trs.length; i++) {
387
393
  cells = trs[i].cells;
@@ -1,4 +1,4 @@
1
- /*! tableSorter 2.15+ widgets - updated 3/12/2014 (v2.15.8)
1
+ /*! tableSorter 2.15+ widgets - updated 3/18/2014 (v2.15.11)
2
2
  *
3
3
  * Column Styles
4
4
  * Column Filters
@@ -680,7 +680,7 @@ ts.filter = {
680
680
  for (column = 0; column < columns; column++) {
681
681
  buildFilter += '<td></td>';
682
682
  }
683
- c.$filters = $(buildFilter += '</tr>').appendTo( c.$table.find('thead').eq(0) ).find('td');
683
+ c.$filters = $(buildFilter += '</tr>').appendTo( c.$table.children('thead').eq(0) ).find('td');
684
684
  // build each filter input
685
685
  for (column = 0; column < columns; column++) {
686
686
  disabled = false;
@@ -1,4 +1,4 @@
1
- /* Pager widget (beta) for TableSorter 3/7/2014 (v2.15.6) */
1
+ /* Pager widget (beta) for TableSorter 3/18/2014 (v2.15.11) */
2
2
  /*jshint browser:true, jquery:true, unused:false */
3
3
  ;(function($){
4
4
  "use strict";
@@ -733,6 +733,7 @@ tsp = ts.pager = {
733
733
  $.data(table, 'pagerLastPage', p.page);
734
734
  $.data(table, 'pagerLastSize', p.size);
735
735
  p.totalPages = Math.ceil( p.totalRows / p.size );
736
+ p.filteredPages = Math.ceil( p.filteredRows / p.size );
736
737
  tsp.moveToPage(table, p);
737
738
  },
738
739
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-tablesorter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.6
4
+ version: 1.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Lin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-14 00:00:00.000000000 Z
12
+ date: 2014-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties