jquery-tablesorter 1.10.8 → 1.10.9

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: ffc506ef591e1d7e8f5274e6058dfb43a6b9f7b9
4
- data.tar.gz: 126d7677c03b8a8f2905b0fd2accbbd0c01645e6
3
+ metadata.gz: 5449c6fef5f36c7506a5f7ed8600d881b365a670
4
+ data.tar.gz: 56acaf022a7ac29fe2c6b06ee3d3b0bbb749842b
5
5
  SHA512:
6
- metadata.gz: cf473da52e37a4960a477aa9bccee11c1f5c6b43a5df212e7af16e5eca97dd73a11aaed29651c01407605b81435a380174f83cd31fa6a6540c0905b32723f7f6
7
- data.tar.gz: 7f4c0f0c095bf9e29973d455d713a8356fa6888464bd7f5a70ec7f73423daf3be3977b3b65d8d220bfd2c17512f1ba8744d8e2507d7e4fc84bc31cb0b2099579
6
+ metadata.gz: 418fa07152af597a9990ae0869fc2a75b912f8b15f175f44d81750d4ed77107f8c01b596ff8f0b18678b2d0741cb965b9251a290553d13f05150169dacfa76f6
7
+ data.tar.gz: 9b268634a730f78fb1d6638ad54aea4822fb7e347658d035744c49fd989ecc6cc4fda42fee09fc126083c766c95fd4ad29eeec4f3d6428c22093d46cd0645083
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.12 (3/31/2014), [documentation]
7
+ Current tablesorter version: 2.15.13 (4/3/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.8'
2
+ VERSION = '1.10.9'
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /**!
2
- * TableSorter 2.15.12 - Client-side table sorting with ease!
2
+ * TableSorter 2.15.13 - 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.12";
27
+ ts.version = "2.15.13";
28
28
 
29
29
  ts.parsers = [];
30
30
  ts.widgets = [];
@@ -290,7 +290,8 @@
290
290
  c = $(b[k].rows[i]);
291
291
  cols = [];
292
292
  // if this is a child row, add it to the last row's children and continue to the next row
293
- if (c.hasClass(tc.cssChildRow)) {
293
+ // ignore child row class, if it is the first row
294
+ if (c.hasClass(tc.cssChildRow) && i !== 0) {
294
295
  tc.cache[k].row[tc.cache[k].row.length - 1] = tc.cache[k].row[tc.cache[k].row.length - 1].add(c);
295
296
  // add "hasChild" class name to parent row
296
297
  if (!c.prev().hasClass(tc.cssChildRow)) {
@@ -785,6 +786,7 @@
785
786
  resortComplete($table, callback);
786
787
  }, true]);
787
788
  } else {
789
+ $table.trigger('applyWidgets');
788
790
  resortComplete($table, callback);
789
791
  }
790
792
  }
@@ -891,7 +893,9 @@
891
893
  // sort the table and append it to the dom
892
894
  multisort(table);
893
895
  appendToTable(table, init);
894
- $table.trigger("sortEnd", this);
896
+ $table
897
+ .trigger("sortEnd", this)
898
+ .trigger('applyWidgets');
895
899
  if (typeof callback === "function") {
896
900
  callback(table);
897
901
  }
@@ -1,4 +1,4 @@
1
- /*! tableSorter 2.15+ widgets - updated 3/31/2014 (v2.15.12)
1
+ /*! tableSorter 2.15+ widgets - updated 4/3/2014 (v2.15.13)
2
2
  *
3
3
  * Column Styles
4
4
  * Column Filters
@@ -851,7 +851,7 @@ ts.filter = {
851
851
  c = table.config,
852
852
  wo = c.widgetOptions,
853
853
  columns = c.columns,
854
- $tbodies = c.$tbodies,
854
+ $tbodies = c.$table.children('tbody'), // target all tbodies #568
855
855
  // anyMatch really screws up with these types of filters
856
856
  anyMatchNotAllowedTypes = [ 'range', 'notMatch', 'operators' ],
857
857
  // parse columns after formatter, in case the class is added at that point
@@ -862,7 +862,7 @@ ts.filter = {
862
862
  }).get();
863
863
  if (c.debug) { time = new Date(); }
864
864
  for (tbodyIndex = 0; tbodyIndex < $tbodies.length; tbodyIndex++ ) {
865
- if ($tbodies.eq(tbodyIndex).hasClass(ts.css.info)) { continue; } // ignore info blocks, issue #264
865
+ if ($tbodies.eq(tbodyIndex).hasClass(c.cssInfoBlock || ts.css.info)) { continue; } // ignore info blocks, issue #264
866
866
  $tbody = ts.processTbody(table, $tbodies.eq(tbodyIndex), true);
867
867
  // skip child rows & widget added (removable) rows - fixes #448 thanks to @hempel!
868
868
  $rows = $tbody.children('tr').not(c.selectorRemove);
@@ -41,14 +41,18 @@
41
41
  }
42
42
 
43
43
  /* since bootstrap (table-striped) uses nth-child(), we just use this to add a zebra stripe color */
44
- .tablesorter-bootstrap > tbody > tr.odd > td {
44
+ .tablesorter-bootstrap > tbody > tr.odd > td,
45
+ .tablesorter-bootstrap > tbody > tr.tablesorter-hasChildRow.odd:hover ~ tr.tablesorter-hasChildRow.odd ~ .tablesorter-childRow.odd > td {
45
46
  background-color: #f9f9f9;
46
47
  }
47
48
  .tablesorter-bootstrap > tbody > tr.odd:hover > td,
48
- .tablesorter-bootstrap > tbody > tr.even:hover > td {
49
+ .tablesorter-bootstrap > tbody > tr.even:hover > td,
50
+ .tablesorter-bootstrap > tbody > tr.tablesorter-hasChildRow.odd:hover ~ .tablesorter-childRow.odd > td,
51
+ .tablesorter-bootstrap > tbody > tr.tablesorter-hasChildRow.even:hover ~ .tablesorter-childRow.even > td {
49
52
  background-color: #f5f5f5;
50
53
  }
51
- .tablesorter-bootstrap > tbody > tr.even > td {
54
+ .tablesorter-bootstrap > tbody > tr.even > td,
55
+ .tablesorter-bootstrap > tbody > tr.tablesorter-hasChildRow.even:hover ~ tr.tablesorter-hasChildRow.even ~ .tablesorter-childRow.even > td {
52
56
  background-color: #fff;
53
57
  }
54
58
 
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.8
4
+ version: 1.10.9
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-31 00:00:00.000000000 Z
12
+ date: 2014-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties