jquery-tablesorter 1.12.8 → 1.13.0
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 +4 -4
- data/README.md +1 -1
- data/lib/jquery-tablesorter/version.rb +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/addons/pager/jquery.tablesorter.pager.js +115 -67
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +62 -40
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +251 -118
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-extract.js +48 -24
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-iso8601.js +5 -4
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-month.js +16 -10
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-two-digit-year.js +26 -19
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-weekday.js +16 -10
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date.js +7 -4
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-named-numbers.js +121 -0
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/{parser-ipv6.js → parser-network.js} +66 -17
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-columnSelector.js +10 -7
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-cssStickyHeaders.js +62 -35
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-editable.js +197 -174
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-grouping.js +3 -6
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +145 -62
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-repeatheaders.js +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-scroller.js +16 -14
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.black-ice.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.blue.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.bootstrap_2.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.dark.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.default.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.dropbox.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.green.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.grey.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.ice.css +2 -2
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.jui.css +4 -1
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.metro-dark.css +4 -4
- metadata +4 -3
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
Resizable scroller widget for the jQuery tablesorter plugin
|
12
12
|
|
13
|
-
Version 2.0 - modified by Rob Garrison 4/12/2013; updated
|
13
|
+
Version 2.0 - modified by Rob Garrison 4/12/2013; updated 10/26/2014 (v2.18.0)
|
14
14
|
Requires jQuery v1.7+
|
15
15
|
Requires the tablesorter plugin, v2.8+, available at http://mottie.github.com/tablesorter/docs/
|
16
16
|
|
@@ -24,7 +24,6 @@
|
|
24
24
|
scroller_height : 300, // height of scroll window
|
25
25
|
scroller_barWidth : 18, // scroll bar width
|
26
26
|
scroller_jumpToHeader : true, // header snap to browser top when scrolling the tbody
|
27
|
-
scroller_idPrefix : 's_' // cloned thead id prefix (random number added to end)
|
28
27
|
}
|
29
28
|
});
|
30
29
|
|
@@ -43,7 +42,7 @@ var ts = $.tablesorter;
|
|
43
42
|
|
44
43
|
ts.window_resize = function(){
|
45
44
|
if (this.resize_timer) {
|
46
|
-
clearTimeout(this.resize_timer);
|
45
|
+
clearTimeout(this.resize_timer);
|
47
46
|
}
|
48
47
|
this.resize_timer = setTimeout(function(){
|
49
48
|
$(this).trigger('resizeEnd');
|
@@ -73,28 +72,30 @@ ts.addWidget({
|
|
73
72
|
scroller_height : 300,
|
74
73
|
scroller_barWidth : 18,
|
75
74
|
scroller_jumpToHeader: true,
|
76
|
-
scroller_upAfterSort: true
|
77
|
-
scroller_idPrefix : 's_'
|
75
|
+
scroller_upAfterSort: true
|
78
76
|
},
|
79
77
|
init: function(table, thisWidget, c, wo){
|
80
|
-
var $win = $(window)
|
78
|
+
var $win = $(window),
|
79
|
+
namespace = c.namespace + 'tsscroller';
|
81
80
|
// Setup window.resizeEnd event
|
82
81
|
$win
|
83
|
-
.bind('resize', ts.window_resize)
|
84
|
-
.bind('resizeEnd', function() {
|
82
|
+
.bind('resize' + namespace, ts.window_resize)
|
83
|
+
.bind('resizeEnd' + namespace, function() {
|
85
84
|
// init is run before format, so scroller_resizeWidth
|
86
85
|
// won't be defined within the "c" or "wo" parameters
|
87
86
|
if (typeof table.config.widgetOptions.scroller_resizeWidth === 'function') {
|
88
87
|
// IE calls resize when you modify content, so we have to unbind the resize event
|
89
88
|
// so we don't end up with an infinite loop. we can rebind after we're done.
|
90
|
-
$win.unbind('resize', ts.window_resize);
|
89
|
+
$win.unbind('resize' + namespace, ts.window_resize);
|
91
90
|
table.config.widgetOptions.scroller_resizeWidth();
|
92
|
-
$win.bind('resize', ts.window_resize);
|
91
|
+
$win.bind('resize' + namespace, ts.window_resize);
|
93
92
|
}
|
94
93
|
});
|
95
94
|
},
|
96
95
|
format: function(table, c, wo) {
|
97
|
-
var h, $hdr,
|
96
|
+
var h, $hdr, t, resize, $cells,
|
97
|
+
// c.namespace contains a unique tablesorter ID, per table
|
98
|
+
id = c.namespace.slice(1) + 'tsscroller',
|
98
99
|
$win = $(window),
|
99
100
|
$tbl = c.$table;
|
100
101
|
|
@@ -102,7 +103,6 @@ ts.addWidget({
|
|
102
103
|
h = wo.scroller_height || 300;
|
103
104
|
t = $tbl.find('tbody').height();
|
104
105
|
if (t !== 0 && h > t) { h = t + 10; } // Table is less than h px
|
105
|
-
id = wo.scroller_id = wo.scroller_idPrefix + Math.floor(Math.random() * 1001);
|
106
106
|
|
107
107
|
$hdr = $('<table class="' + $tbl.attr('class') + '" cellpadding=0 cellspacing=0><thead>' + $tbl.find('thead:first').html() + '</thead></table>');
|
108
108
|
$tbl
|
@@ -204,13 +204,15 @@ ts.addWidget({
|
|
204
204
|
}
|
205
205
|
|
206
206
|
},
|
207
|
-
remove : function(table, c
|
208
|
-
var $table = c.$table
|
207
|
+
remove : function(table, c){
|
208
|
+
var $table = c.$table,
|
209
|
+
namespace = c.namespace + 'tsscroller';
|
209
210
|
$table.closest('.tablesorter-scroller').find('.tablesorter-scroller-header').remove();
|
210
211
|
$table
|
211
212
|
.unwrap()
|
212
213
|
.find('.tablesorter-filter-row').removeClass('hideme').end()
|
213
214
|
.find('thead').show().css('visibility', 'visible');
|
215
|
+
$(window).unbind('resize' + namespace + ' resizeEnd' + namespace);
|
214
216
|
c.isScrolling = false;
|
215
217
|
}
|
216
218
|
});
|
@@ -84,10 +84,10 @@
|
|
84
84
|
}
|
85
85
|
|
86
86
|
/* Zebra Widget - row alternating colors */
|
87
|
-
.tablesorter-blackice tr.odd td {
|
87
|
+
.tablesorter-blackice tr.odd > td {
|
88
88
|
background-color: #333;
|
89
89
|
}
|
90
|
-
.tablesorter-blackice tr.even td {
|
90
|
+
.tablesorter-blackice tr.even > td {
|
91
91
|
background-color: #393939;
|
92
92
|
}
|
93
93
|
|
@@ -119,10 +119,10 @@
|
|
119
119
|
}
|
120
120
|
|
121
121
|
/* Zebra Widget - row alternating colors */
|
122
|
-
.tablesorter-blue tbody tr.odd td {
|
122
|
+
.tablesorter-blue tbody tr.odd > td {
|
123
123
|
background-color: #ebf2fa;
|
124
124
|
}
|
125
|
-
.tablesorter-blue tbody tr.even td {
|
125
|
+
.tablesorter-blue tbody tr.even > td {
|
126
126
|
background-color: #fff;
|
127
127
|
}
|
128
128
|
|
@@ -60,14 +60,14 @@
|
|
60
60
|
}
|
61
61
|
|
62
62
|
/* since bootstrap (table-striped) uses nth-child(), we just use this to add a zebra stripe color */
|
63
|
-
.tablesorter-bootstrap tr.odd td {
|
63
|
+
.tablesorter-bootstrap tr.odd > td {
|
64
64
|
background-color: #f9f9f9;
|
65
65
|
}
|
66
66
|
.tablesorter-bootstrap tbody > .odd:hover > td,
|
67
67
|
.tablesorter-bootstrap tbody > .even:hover > td {
|
68
68
|
background-color: #f5f5f5;
|
69
69
|
}
|
70
|
-
.tablesorter-bootstrap tr.even td {
|
70
|
+
.tablesorter-bootstrap tr.even > td {
|
71
71
|
background-color: #fff;
|
72
72
|
}
|
73
73
|
|
@@ -83,10 +83,10 @@
|
|
83
83
|
}
|
84
84
|
|
85
85
|
/* Zebra Widget - row alternating colors */
|
86
|
-
.tablesorter-dark tr.odd td {
|
86
|
+
.tablesorter-dark tr.odd > td {
|
87
87
|
background-color: #202020;
|
88
88
|
}
|
89
|
-
.tablesorter-dark tr.even td {
|
89
|
+
.tablesorter-dark tr.even > td {
|
90
90
|
background-color: #101010;
|
91
91
|
}
|
92
92
|
|
@@ -86,10 +86,10 @@ Default Theme
|
|
86
86
|
}
|
87
87
|
|
88
88
|
/* Zebra Widget - row alternating colors */
|
89
|
-
.tablesorter-default tr.odd td {
|
89
|
+
.tablesorter-default tr.odd > td {
|
90
90
|
background-color: #dfdfdf;
|
91
91
|
}
|
92
|
-
.tablesorter-default tr.even td {
|
92
|
+
.tablesorter-default tr.even > td {
|
93
93
|
background-color: #efefef;
|
94
94
|
}
|
95
95
|
|
@@ -116,9 +116,9 @@
|
|
116
116
|
}
|
117
117
|
|
118
118
|
/* Zebra Widget - row alternating colors */
|
119
|
-
.tablesorter-dropbox tr.odd td {
|
119
|
+
.tablesorter-dropbox tr.odd > td {
|
120
120
|
}
|
121
|
-
.tablesorter-dropbox tr.even td {
|
121
|
+
.tablesorter-dropbox tr.even > td {
|
122
122
|
}
|
123
123
|
|
124
124
|
/* Column Widget - column sort colors */
|
@@ -101,10 +101,10 @@
|
|
101
101
|
}
|
102
102
|
|
103
103
|
/* Zebra Widget - row alternating colors */
|
104
|
-
.tablesorter-green tr.odd td {
|
104
|
+
.tablesorter-green tr.odd > td {
|
105
105
|
background-color: #ebfaeb;
|
106
106
|
}
|
107
|
-
.tablesorter-green tr.even td {
|
107
|
+
.tablesorter-green tr.even > td {
|
108
108
|
background-color: #fff;
|
109
109
|
}
|
110
110
|
|
@@ -137,10 +137,10 @@
|
|
137
137
|
}
|
138
138
|
|
139
139
|
/* Zebra Widget - row alternating colors */
|
140
|
-
.tablesorter-grey tbody tr.odd td {
|
140
|
+
.tablesorter-grey tbody tr.odd > td {
|
141
141
|
background-color: #5e5e5e;
|
142
142
|
}
|
143
|
-
.tablesorter-grey tbody tr.even td {
|
143
|
+
.tablesorter-grey tbody tr.even > td {
|
144
144
|
background-color: #6d6d6d;
|
145
145
|
}
|
146
146
|
|
@@ -93,10 +93,10 @@
|
|
93
93
|
}
|
94
94
|
|
95
95
|
/* Zebra Widget - row alternating colors */
|
96
|
-
.tablesorter-ice tr.odd td {
|
96
|
+
.tablesorter-ice tr.odd > td {
|
97
97
|
background-color: #dfdfdf;
|
98
98
|
}
|
99
|
-
.tablesorter-ice tr.even td {
|
99
|
+
.tablesorter-ice tr.even > td {
|
100
100
|
background-color: #efefef;
|
101
101
|
}
|
102
102
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
.tablesorter-jui {
|
6
6
|
width: 100%;
|
7
7
|
border-collapse: separate;
|
8
|
-
border-spacing: 2px; /* adjust spacing between table cells */
|
8
|
+
border-spacing: 2px; /* adjust spacing between table cells */
|
9
9
|
margin: 10px 0 15px;
|
10
10
|
padding: 5px;
|
11
11
|
font-size: 0.8em;
|
@@ -43,6 +43,9 @@
|
|
43
43
|
.tablesorter-jui thead .sorter-false {
|
44
44
|
cursor: default;
|
45
45
|
}
|
46
|
+
.tablesorter-jui thead tr .sorter-false .ui-icon {
|
47
|
+
display: none;
|
48
|
+
}
|
46
49
|
|
47
50
|
/* tfoot */
|
48
51
|
.tablesorter-jui tfoot th,
|
@@ -12,7 +12,7 @@ Metro Dark Theme
|
|
12
12
|
text-align: left;
|
13
13
|
}
|
14
14
|
|
15
|
-
.tablesorter-metro-dark tr.dark-row th, .tablesorter-metro-dark tr.dark-row td {
|
15
|
+
.tablesorter-metro-dark tr.dark-row th, .tablesorter-metro-dark tr.dark-row td, .tablesorter-metro-dark caption.dark-row {
|
16
16
|
background-color: #222;
|
17
17
|
color: #fff;
|
18
18
|
padding: 2px;
|
@@ -36,7 +36,7 @@ Metro Dark Theme
|
|
36
36
|
.tablesorter-metro-dark .header,
|
37
37
|
.tablesorter-metro-dark .tablesorter-header {
|
38
38
|
background-image: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAGFBMVEUAAADu7u7u7u7u7u7u7u7u7u7u7u7u7u5jNePWAAAACHRSTlMAMxIHKwEgMWD59H4AAABSSURBVAjXY2BgYFJgAAHzYhDJ6igSAKTYBAUTgJSioKAQAwNzoaCguAFDiCAQuDIkgigxBgiA8cJAVCpQt6AgSL+JoKAzA0gjUBsQqBcBCYhFAAE/CV4zeSzxAAAAAElFTkSuQmCC);
|
39
|
-
background-position: center
|
39
|
+
background-position: right 5px center;
|
40
40
|
background-repeat: no-repeat;
|
41
41
|
cursor: pointer;
|
42
42
|
white-space: normal;
|
@@ -95,10 +95,10 @@ Metro Dark Theme
|
|
95
95
|
}
|
96
96
|
|
97
97
|
/* Zebra Widget - row alternating colors */
|
98
|
-
.tablesorter-metro-dark tr.odd td {
|
98
|
+
.tablesorter-metro-dark tr.odd > td {
|
99
99
|
background-color: #eee;
|
100
100
|
}
|
101
|
-
.tablesorter-metro-dark tr.even td {
|
101
|
+
.tablesorter-metro-dark tr.even > td {
|
102
102
|
background-color: #fff;
|
103
103
|
}
|
104
104
|
|
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.
|
4
|
+
version: 1.13.0
|
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-
|
12
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -97,8 +97,9 @@ files:
|
|
97
97
|
- vendor/assets/javascripts/jquery-tablesorter/parsers/parser-ignore-articles.js
|
98
98
|
- vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
|
99
99
|
- vendor/assets/javascripts/jquery-tablesorter/parsers/parser-input-select.js
|
100
|
-
- vendor/assets/javascripts/jquery-tablesorter/parsers/parser-ipv6.js
|
101
100
|
- vendor/assets/javascripts/jquery-tablesorter/parsers/parser-metric.js
|
101
|
+
- vendor/assets/javascripts/jquery-tablesorter/parsers/parser-named-numbers.js
|
102
|
+
- vendor/assets/javascripts/jquery-tablesorter/parsers/parser-network.js
|
102
103
|
- vendor/assets/javascripts/jquery-tablesorter/parsers/parser-roman.js
|
103
104
|
- vendor/assets/javascripts/jquery-tablesorter/widgets/widget-alignChar.js
|
104
105
|
- vendor/assets/javascripts/jquery-tablesorter/widgets/widget-build-table.js
|