jquery-tablesorter 1.10.9 → 1.10.10
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 +6 -5
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +11 -6
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-grouping.js +3 -4
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +6 -5
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.bootstrap.css +2 -1
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.jui.css +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1591f84710f85ceb7162d750a39df47356371b14
|
4
|
+
data.tar.gz: 1be6e92aa78bf994599a91a5c8ce4107442800fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f844b8b9ea9af7ccdc7389b55e69ed24f727a7c565355de3a9212552400a1327498fd82466ca3deb5c537a3beee49d931833c8a31724a3bb2b23078901d9181
|
7
|
+
data.tar.gz: 8eb94e20072ac16362d837190fd8407c50d17b290db3b46ea037549aab87e338ba1836068ac24279622250e372d030f5c2a075d33b973d496ebb8e17dc7d9fd8
|
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.
|
7
|
+
Current tablesorter version: 2.15.14 (4/10/2014), [documentation]
|
8
8
|
|
9
9
|
Any issue associate with the js/css files, please report to [Mottie's fork].
|
10
10
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* tablesorter pager plugin
|
3
|
-
* updated
|
3
|
+
* updated 4/10/2014 (v2.15.14)
|
4
4
|
*/
|
5
5
|
/*jshint browser:true, jquery:true, unused:false */
|
6
6
|
;(function($) {
|
@@ -297,8 +297,10 @@
|
|
297
297
|
}
|
298
298
|
l = d.length;
|
299
299
|
if (d instanceof jQuery) {
|
300
|
-
|
301
|
-
|
300
|
+
if (p.processAjaxOnInit) {
|
301
|
+
// append jQuery object
|
302
|
+
c.$tbodies.eq(0).empty().append(d);
|
303
|
+
}
|
302
304
|
} else if (l) {
|
303
305
|
// build table from array
|
304
306
|
for ( i = 0; i < l; i++ ) {
|
@@ -312,10 +314,9 @@
|
|
312
314
|
// add rows to first tbody
|
313
315
|
if (p.processAjaxOnInit) {
|
314
316
|
c.$tbodies.eq(0).html( tds );
|
315
|
-
} else {
|
316
|
-
p.processAjaxOnInit = true;
|
317
317
|
}
|
318
318
|
}
|
319
|
+
p.processAjaxOnInit = true;
|
319
320
|
// only add new header text if the length matches
|
320
321
|
if ( th && th.length === hl ) {
|
321
322
|
hsh = $t.hasClass('hasStickyHeaders');
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**!
|
2
|
-
* TableSorter 2.15.
|
2
|
+
* TableSorter 2.15.14 - 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.
|
27
|
+
ts.version = "2.15.14";
|
28
28
|
|
29
29
|
ts.parsers = [];
|
30
30
|
ts.widgets = [];
|
@@ -1165,6 +1165,11 @@
|
|
1165
1165
|
$h = $t.find('thead:first'),
|
1166
1166
|
$r = $h.find('tr.' + ts.css.headerRow).removeClass(ts.css.headerRow + ' ' + c.cssHeaderRow),
|
1167
1167
|
$f = $t.find('tfoot:first > tr').children('th, td');
|
1168
|
+
if (removeClasses === false && $.inArray('uitheme', c.widgets) >= 0) {
|
1169
|
+
// reapply uitheme classes, in case we want to maintain appearance
|
1170
|
+
$t.trigger('applyWidgetId', ['uitheme']);
|
1171
|
+
$t.trigger('applyWidgetId', ['zebra']);
|
1172
|
+
}
|
1168
1173
|
// remove widget added rows, just in case
|
1169
1174
|
$h.find('tr').not($r).remove();
|
1170
1175
|
// disable tablesorter
|
@@ -1173,12 +1178,12 @@
|
|
1173
1178
|
.unbind('sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd '.split(' ').join(c.namespace + ' '));
|
1174
1179
|
c.$headers.add($f)
|
1175
1180
|
.removeClass( [ts.css.header, c.cssHeader, c.cssAsc, c.cssDesc, ts.css.sortAsc, ts.css.sortDesc, ts.css.sortNone].join(' ') )
|
1176
|
-
.removeAttr('data-column')
|
1181
|
+
.removeAttr('data-column')
|
1182
|
+
.removeAttr('aria-label')
|
1183
|
+
.attr('aria-disabled', 'true');
|
1177
1184
|
$r.find(c.selectorSort).unbind('mousedown mouseup keypress '.split(' ').join(c.namespace + ' '));
|
1178
1185
|
ts.restoreHeaders(table);
|
1179
|
-
|
1180
|
-
$t.removeClass(ts.css.table + ' ' + c.tableClass + ' tablesorter-' + c.theme);
|
1181
|
-
}
|
1186
|
+
$t.toggleClass(ts.css.table + ' ' + c.tableClass + ' tablesorter-' + c.theme, removeClasses === false);
|
1182
1187
|
// clear flag in case the plugin is initialized again
|
1183
1188
|
table.hasInitialized = false;
|
1184
1189
|
if (typeof callback === 'function') {
|
@@ -1102,7 +1102,7 @@ ts.getFilters = function(table, getRaw, setFilters, skipFirst) {
|
|
1102
1102
|
var i, $filters, $column,
|
1103
1103
|
filters = false,
|
1104
1104
|
c = table ? $(table)[0].config : '',
|
1105
|
-
wo =
|
1105
|
+
wo = c ? c.widgetOptions : '';
|
1106
1106
|
if (getRaw !== true && wo && !wo.filter_columnFilters) {
|
1107
1107
|
return $(table).data('lastSearch');
|
1108
1108
|
}
|
@@ -110,7 +110,6 @@ ts.grouping = {
|
|
110
110
|
currentGroup = wo.group_formatter((currentGroup || '').toString(), column, table, c, wo) || currentGroup;
|
111
111
|
}
|
112
112
|
$rows.eq(rowIndex).before('<tr class="group-header ' + c.selectorRemove.slice(1) +
|
113
|
-
// (wo.group_collapsed && wo.group_collapsible ? ' collapsed' : '') +
|
114
113
|
'" unselectable="on"><td colspan="' +
|
115
114
|
c.columns + '">' + (wo.group_collapsible ? '<i/>' : '') + '<span class="group-name">' +
|
116
115
|
currentGroup + '</span><span class="group-count"></span></td></tr>');
|
@@ -126,9 +125,8 @@ ts.grouping = {
|
|
126
125
|
c.$table.find('tr.group-header')
|
127
126
|
.bind('selectstart', false)
|
128
127
|
.each(function(){
|
129
|
-
var isHidden, $label,
|
128
|
+
var isHidden, $label, name,
|
130
129
|
$row = $(this),
|
131
|
-
name = $row.find('.group-name').text().toLowerCase(),
|
132
130
|
$rows = $row.nextUntil('tr.group-header').filter(':visible');
|
133
131
|
if (wo.group_count || $.isFunction(wo.group_callback)) {
|
134
132
|
$label = $row.find('.group-count');
|
@@ -142,6 +140,7 @@ ts.grouping = {
|
|
142
140
|
}
|
143
141
|
}
|
144
142
|
if (wo.group_saveGroups && wo.group_currentGroups[wo.group_currentGroup].length) {
|
143
|
+
name = $row.find('.group-name').text().toLowerCase();
|
145
144
|
isHidden = $.inArray( name, wo.group_currentGroups[wo.group_currentGroup] ) > -1;
|
146
145
|
$row.toggleClass('collapsed', isHidden);
|
147
146
|
$rows.toggleClass('group-hidden', isHidden);
|
@@ -165,7 +164,7 @@ ts.grouping = {
|
|
165
164
|
event.stopPropagation();
|
166
165
|
var isCollapsed, $groups, indx,
|
167
166
|
$this = $(this),
|
168
|
-
name = $this.find('.group-name').text();
|
167
|
+
name = $this.find('.group-name').text().toLowerCase();
|
169
168
|
// use shift-click to toggle ALL groups
|
170
169
|
if (event.type === 'click' && event.shiftKey) {
|
171
170
|
$this.siblings('.group-header').trigger('toggleGroup');
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/* Pager widget (beta) for TableSorter
|
1
|
+
/* Pager widget (beta) for TableSorter 4/10/2014 (v2.15.14) */
|
2
2
|
/*jshint browser:true, jquery:true, unused:false */
|
3
3
|
;(function($){
|
4
4
|
"use strict";
|
@@ -486,8 +486,10 @@ tsp = ts.pager = {
|
|
486
486
|
}
|
487
487
|
l = d.length;
|
488
488
|
if (d instanceof jQuery) {
|
489
|
-
|
490
|
-
|
489
|
+
if (wo.pager_processAjaxOnInit) {
|
490
|
+
// append jQuery object
|
491
|
+
c.$tbodies.eq(0).empty().append(d);
|
492
|
+
}
|
491
493
|
} else if (l) {
|
492
494
|
// build table from array
|
493
495
|
for ( i = 0; i < l; i++ ) {
|
@@ -501,10 +503,9 @@ tsp = ts.pager = {
|
|
501
503
|
// add rows to first tbody
|
502
504
|
if (wo.pager_processAjaxOnInit) {
|
503
505
|
c.$tbodies.eq(0).html( tds );
|
504
|
-
} else {
|
505
|
-
wo.pager_processAjaxOnInit = true;
|
506
506
|
}
|
507
507
|
}
|
508
|
+
wo.pager_processAjaxOnInit = true;
|
508
509
|
// only add new header text if the length matches
|
509
510
|
if ( th && th.length === hl ) {
|
510
511
|
hsh = $t.hasClass('hasStickyHeaders');
|
@@ -5,7 +5,8 @@
|
|
5
5
|
.tablesorter-bootstrap {
|
6
6
|
width: 100%;
|
7
7
|
}
|
8
|
-
.tablesorter-bootstrap
|
8
|
+
.tablesorter-bootstrap thead th,
|
9
|
+
.tablesorter-bootstrap thead td,
|
9
10
|
.tablesorter-bootstrap tfoot th,
|
10
11
|
.tablesorter-bootstrap tfoot td {
|
11
12
|
font: bold 14px/20px Arial, Sans-serif;
|
@@ -12,8 +12,10 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
/* header */
|
15
|
-
.tablesorter-jui th,
|
16
|
-
.tablesorter-jui thead td
|
15
|
+
.tablesorter-jui thead th,
|
16
|
+
.tablesorter-jui thead td,
|
17
|
+
.tablesorter-jui tfoot th,
|
18
|
+
.tablesorter-jui tfoot td {
|
17
19
|
position: relative;
|
18
20
|
background-repeat: no-repeat;
|
19
21
|
background-position: right center;
|
@@ -21,12 +23,12 @@
|
|
21
23
|
font-weight: bold !important;
|
22
24
|
border-width: 1px !important;
|
23
25
|
text-align: left;
|
26
|
+
padding: 8px; /* wider than the icon */
|
24
27
|
}
|
25
28
|
.tablesorter-jui .header,
|
26
29
|
.tablesorter-jui .tablesorter-header {
|
27
30
|
cursor: pointer;
|
28
31
|
white-space: normal;
|
29
|
-
padding: 8px; /* wider than the icon */
|
30
32
|
}
|
31
33
|
.tablesorter-jui .tablesorter-header-inner {
|
32
34
|
padding-right: 20px;
|
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.
|
4
|
+
version: 1.10.10
|
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-04-
|
12
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|