jquery-tablesorter 1.10.0 → 1.10.1

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: 52e8ad84b6ff1a950b33ee5b7079c1ec4729ee5a
4
- data.tar.gz: e1327f89930c43ee5f0f3c998e9211d1ea7b4fae
3
+ metadata.gz: f993d3ad9edc10a4ede7f829031260e60b3de88c
4
+ data.tar.gz: f6a09c02fc388e5322308d39e076c16d40a1cd7d
5
5
  SHA512:
6
- metadata.gz: 745b66745f32af6cd49bf7b1d2be20776f4a5d171fb468718a07e914ce330515f88fc4549a2d1c2645b3ff086c52bb6d8ba0271676586ae81482a31a3856331b
7
- data.tar.gz: 3ee46d3579ed98b99e42e82ebcbae2841a6ecb3bb4643bec2e81469373e34532551f1b141cb8e7949bf0ceea9af160b25a5e1f0c96d8f51513e462acf9d7c05d
6
+ metadata.gz: 2a22160b93179c27adaa2d57d649512fa9eee01224ed89c119ee366c059b4fa42550b45a1985f01fc23511f0a778d6d68f6379044d11d7ba8319411777ce54f3
7
+ data.tar.gz: c7e04027e5100364c0d6bb412c92a8d9f954244b635cb854db493b563fc8b7ba06b05e89fed39c41d781cb90da75ac97597615a06353664604205e8831d1c2be
@@ -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.0 (2/19/2014), [documentation]
7
+ Current tablesorter version: 2.15.1 (2/19/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.0"
2
+ VERSION = "1.10.1"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /**!
2
- * TableSorter 2.15.0 - Client-side table sorting with ease!
2
+ * TableSorter 2.15.1 - 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.0";
27
+ ts.version = "2.15.1";
28
28
 
29
29
  ts.parsers = [];
30
30
  ts.widgets = [];
@@ -1,4 +1,4 @@
1
- /*! tableSorter 2.8+ widgets - updated 2/19/2014 (v2.15.0)
1
+ /*! tableSorter 2.8+ widgets - updated 2/19/2014 (v2.15.1)
2
2
  *
3
3
  * Column Styles
4
4
  * Column Filters
@@ -581,10 +581,6 @@ ts.filter = {
581
581
  }
582
582
  return false;
583
583
  });
584
- ts.filter.bindSearch( table, c.$table.find('input.' + ts.css.filter), true );
585
- if (wo.filter_external) {
586
- ts.filter.bindSearch( table, wo.filter_external );
587
- }
588
584
 
589
585
  // reset button/link
590
586
  if (wo.filter_reset) {
@@ -621,9 +617,10 @@ ts.filter = {
621
617
  // it would append the same options twice.
622
618
  ts.filter.buildDefault(table, true);
623
619
 
624
- c.$table.find('select.' + ts.css.filter).bind('change search', function(event, filter) {
625
- ts.filter.checkFilters(table, filter, true);
626
- });
620
+ ts.filter.bindSearch( table, c.$table.find('.' + ts.css.filter), true );
621
+ if (wo.filter_external) {
622
+ ts.filter.bindSearch( table, wo.filter_external );
623
+ }
627
624
 
628
625
  if (wo.filter_hideFilters) {
629
626
  ts.filter.hideFilters(table, c);
@@ -746,11 +743,12 @@ ts.filter = {
746
743
  ts.setFilters(table, c.$table.data('lastSearch') || [], internal === false);
747
744
  }
748
745
  $el
749
- .data('lastSearchTime', new Date().getTime())
746
+ // use data attribute instead of jQuery data since the head is cloned without including the data/binding
747
+ .attr('data-lastSearchTime', new Date().getTime())
750
748
  .unbind('keyup search change')
751
749
  // include change for select - fixes #473
752
750
  .bind('keyup search change', function(event, filters) {
753
- $(this).data('lastSearchTime', new Date().getTime());
751
+ $(this).attr('data-lastSearchTime', new Date().getTime());
754
752
  // emulate what webkit does.... escape clears the filter
755
753
  if (event.which === 27) {
756
754
  this.value = '';
@@ -852,7 +850,7 @@ ts.filter = {
852
850
  anyMatchNotAllowedTypes = [ 'range', 'notMatch', 'operators' ],
853
851
  // parse columns after formatter, in case the class is added at that point
854
852
  parsed = c.$headers.map(function(columnIndex) {
855
- return c.parsers[columnIndex].parsed || ( ts.getData ?
853
+ return c.parsers && c.parsers[columnIndex].parsed || ( ts.getData ?
856
854
  ts.getData(c.$headers.filter('[data-column="' + columnIndex + '"]:last'), c.headers[columnIndex], 'filter') === 'parsed' :
857
855
  $(this).hasClass('filter-parsed') );
858
856
  }).get();
@@ -1112,7 +1110,7 @@ ts.getFilters = function(table, getRaw, setFilters, skipFirst) {
1112
1110
  if ($column.length) {
1113
1111
  // move the latest search to the first slot in the array
1114
1112
  $column = $column.sort(function(a, b){
1115
- return $(a).data('lastSearchTime') <= $(b).data('lastSearchTime');
1113
+ return $(a).attr('data-lastSearchTime') <= $(b).attr('data-lastSearchTime');
1116
1114
  });
1117
1115
  if ($.isArray(setFilters)) {
1118
1116
  // skip first (latest input) to maintain cursor position while typing
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.0
4
+ version: 1.10.1
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-02-19 00:00:00.000000000 Z
12
+ date: 2014-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties