jquery-tablesorter 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/lib/jquery-tablesorter/version.rb +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/addons/pager/jquery.tablesorter.pager.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets-filter-formatter.js +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +15 -6
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.black-ice.css +1 -0
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.blue.css +1 -0
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.dark.css +1 -0
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.default.css +1 -0
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.dropbox.css +9 -3
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.green.css +4 -4
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.grey.css +7 -1
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.ice.css +7 -0
- data/vendor/assets/stylesheets/jquery-tablesorter/theme.jui.css +4 -0
- 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: 4073991a70f6c68bfb3419ea8fbc24a74ff2e6fd
|
4
|
+
data.tar.gz: 57a8f813940a33d3b7712c7bea8a13f47d88fb28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51bee48083bdb56a2f5f71921c9604efac9da8630a4fb747c4424fecda198bf011783a926db8ac5eb088ec9ba51bcb5b6a61e60cbb307f9b4bc9f362336b3dc3
|
7
|
+
data.tar.gz: 05505320b825aa46ebefabaefb98b71e6afcf280c122c784ae7915f1653206d266fc545743bf5ed6557e048062ea009b0fd0556bc0cf88a193366c0c759e7132
|
data/README.markdown
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.14.
|
7
|
+
Current tablesorter version: 2.14.1 (11/22/2013), [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 11/
|
3
|
+
* updated 11/22/2013 (v2.14.1)
|
4
4
|
*/
|
5
5
|
/*jshint browser:true, jquery:true, unused:false */
|
6
6
|
;(function($) {
|
@@ -585,7 +585,7 @@
|
|
585
585
|
}
|
586
586
|
p.oldAjaxSuccess = p.oldAjaxSuccess || p.ajaxObject.success;
|
587
587
|
c.appender = $this.appender;
|
588
|
-
if (ts.filter &&
|
588
|
+
if (ts.filter && $.inArray('filter', c.widgets) >= 0) {
|
589
589
|
// get any default filter settings (data-value attribute) fixes #388
|
590
590
|
p.currentFilters = c.$table.data('lastSearch') || ts.filter.setDefaults(table, c, c.widgetOptions) || [];
|
591
591
|
// set, but don't apply current filters
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**!
|
2
|
-
* TableSorter 2.14.
|
2
|
+
* TableSorter 2.14.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.14.
|
27
|
+
ts.version = "2.14.1";
|
28
28
|
|
29
29
|
ts.parsers = [];
|
30
30
|
ts.widgets = [];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! tableSorter 2.8+ widgets - updated 11/
|
1
|
+
/*! tableSorter 2.8+ widgets - updated 11/22/2013 (v2.14.1)
|
2
2
|
*
|
3
3
|
* Column Styles
|
4
4
|
* Column Filters
|
@@ -709,7 +709,8 @@ ts.filter = {
|
|
709
709
|
bindSearch: function(table, $el) {
|
710
710
|
table = $(table)[0];
|
711
711
|
var external, wo = table.config.widgetOptions;
|
712
|
-
$el.unbind('keyup search
|
712
|
+
$el.unbind('keyup search filterReset')
|
713
|
+
.bind('keyup search', function(event, filter) {
|
713
714
|
// emulate what webkit does.... escape clears the filter
|
714
715
|
if (event.which === 27) {
|
715
716
|
this.value = '';
|
@@ -730,6 +731,9 @@ ts.filter = {
|
|
730
731
|
});
|
731
732
|
}
|
732
733
|
ts.filter.searching(table, filter, external);
|
734
|
+
})
|
735
|
+
.bind('filterReset', function(){
|
736
|
+
$el.val('');
|
733
737
|
});
|
734
738
|
},
|
735
739
|
checkFilters: function(table, filter) {
|
@@ -886,7 +890,7 @@ ts.filter = {
|
|
886
890
|
// cycle through the different filters
|
887
891
|
// filters return a boolean or null if nothing matches
|
888
892
|
$.each(ts.filter.types, function(type, typeFunction) {
|
889
|
-
if (!wo.filter_anyMatch || (wo.filter_anyMatch &&
|
893
|
+
if (!wo.filter_anyMatch || (wo.filter_anyMatch && $.inArray(type, anyMatchNotAllowedTypes) < 0)) {
|
890
894
|
matches = typeFunction( filters[columnIndex], iFilter, exact, iExact, cached, columnIndex, table, wo, parsed );
|
891
895
|
if (matches !== null) {
|
892
896
|
filterMatched = matches;
|
@@ -1078,12 +1082,13 @@ ts.addWidget({
|
|
1078
1082
|
laststate = '',
|
1079
1083
|
spacing = 0,
|
1080
1084
|
updatingStickyFilters = false,
|
1085
|
+
nonwkie = $table.css('border-collapse') !== 'collapse' && !/(webkit|msie)/i.test(navigator.userAgent),
|
1081
1086
|
resizeHeader = function() {
|
1082
1087
|
stickyOffset = $stickyOffset.length ? $stickyOffset.height() || 0 : parseInt(wo.stickyHeaders_offset, 10) || 0;
|
1083
1088
|
spacing = 0;
|
1084
1089
|
// yes, I dislike browser sniffing, but it really is needed here :(
|
1085
1090
|
// webkit automatically compensates for border spacing
|
1086
|
-
if (
|
1091
|
+
if (nonwkie) {
|
1087
1092
|
// Firefox & Opera use the border-spacing
|
1088
1093
|
// update border-spacing here because of demos that switch themes
|
1089
1094
|
spacing = parseInt($header.eq(0).css('border-left-width'), 10) * 2;
|
@@ -1093,13 +1098,15 @@ ts.addWidget({
|
|
1093
1098
|
width: $table.width()
|
1094
1099
|
});
|
1095
1100
|
$stickyCells.filter(':visible').each(function(i) {
|
1096
|
-
var $cell = $header.filter(':visible').eq(i)
|
1101
|
+
var $cell = $header.filter(':visible').eq(i),
|
1102
|
+
// some wibbly-wobbly... timey-wimey... stuff, to make columns line up in Firefox
|
1103
|
+
offset = nonwkie && $(this).attr('data-column') === ( '' + parseInt(c.columns/2, 10) ) ? 1 : 0;
|
1097
1104
|
$(this)
|
1098
1105
|
.css({
|
1099
1106
|
width: $cell.width() - spacing,
|
1100
1107
|
height: $cell.height()
|
1101
1108
|
})
|
1102
|
-
.find(innerHeader).width( $cell.find(innerHeader).width() );
|
1109
|
+
.find(innerHeader).width( $cell.find(innerHeader).width() - offset );
|
1103
1110
|
});
|
1104
1111
|
};
|
1105
1112
|
// fix clone ID, if it exists - fixes #271
|
@@ -1109,6 +1116,8 @@ ts.addWidget({
|
|
1109
1116
|
$stickyTable.find('thead:gt(0), tr.sticky-false, tbody, tfoot').remove();
|
1110
1117
|
if (!wo.stickyHeaders_includeCaption) {
|
1111
1118
|
$stickyTable.find('caption').remove();
|
1119
|
+
} else {
|
1120
|
+
$stickyTable.find('caption').css( 'margin-left', '-1px' );
|
1112
1121
|
}
|
1113
1122
|
// issue #172 - find td/th in sticky header
|
1114
1123
|
$stickyCells = $stickyThead.children().children();
|
@@ -35,7 +35,6 @@
|
|
35
35
|
background-color: #f0f9ff;
|
36
36
|
border-bottom: 1px solid #96c4ea;
|
37
37
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 0 0 #000000 inset;
|
38
|
-
cursor: pointer;
|
39
38
|
white-space: normal;
|
40
39
|
}
|
41
40
|
.tablesorter-dropbox .tablesorter-headerSortUp,
|
@@ -44,11 +43,14 @@
|
|
44
43
|
.tablesorter-dropbox .tablesorter-headerDesc {
|
45
44
|
font-weight: 600;
|
46
45
|
}
|
46
|
+
.tablesorter-dropbox .tablesorter-header {
|
47
|
+
cursor: pointer;
|
48
|
+
}
|
47
49
|
.tablesorter-dropbox .tablesorter-header i {
|
48
50
|
width: 9px;
|
49
51
|
height: 9px;
|
50
|
-
padding:
|
51
|
-
|
52
|
+
padding: 0 10px 0 4px;
|
53
|
+
display: inline-block;
|
52
54
|
background-position: center right;
|
53
55
|
background-repeat: no-repeat;
|
54
56
|
content: "";
|
@@ -73,6 +75,10 @@
|
|
73
75
|
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALNJREFUeNpi/P//PwMhwBJf3uP879e3PUzMzBiS//7+ZWBi43JhBJmU2z7nIzMzEx8jIyNcAUj8799/nyZXpvCzgARYuXjTWBkZVjCzIEz7++cvw+//DGkgNiPMTWVT1l5hZvynDTINbMp/pqtdOcE6IDkmmM5fv3/5//v37z9QBQOIBvFhcnBFEwoj7/5jZFnz9+8fBhAN4sN9h+ybH9++JrGxscr/+vE1CVmckZhwAggwANvlUyq5Dd1wAAAAAElFTkSuQmCC');
|
74
76
|
/* background-image: url(/assets/jquery-tablesorter/dropbox-desc-hovered.png); */
|
75
77
|
}
|
78
|
+
.tablesorter-dropbox thead .sorter-false {
|
79
|
+
cursor: default;
|
80
|
+
}
|
81
|
+
|
76
82
|
.tablesorter-dropbox thead .sorter-false i,
|
77
83
|
.tablesorter-dropbox thead .sorter-false:hover i {
|
78
84
|
background-image: none;
|
@@ -6,15 +6,14 @@
|
|
6
6
|
width: 100%;
|
7
7
|
text-align: left;
|
8
8
|
border-spacing: 0;
|
9
|
+
border: #cdcdcd 1px solid;
|
10
|
+
border-width: 1px 0 0 1px;
|
9
11
|
}
|
10
|
-
.tablesorter-green,
|
11
12
|
.tablesorter-green th,
|
12
13
|
.tablesorter-green td {
|
13
14
|
font: 12px/18px Arial, Sans-serif;
|
14
15
|
border: #cdcdcd 1px solid;
|
15
|
-
border-
|
16
|
-
padding: 0;
|
17
|
-
text-align: left;
|
16
|
+
border-width: 0 1px 1px 0;
|
18
17
|
}
|
19
18
|
|
20
19
|
/* header */
|
@@ -58,6 +57,7 @@
|
|
58
57
|
}
|
59
58
|
.tablesorter-green thead .tablesorter-header.sorter-false {
|
60
59
|
background-image: none;
|
60
|
+
cursor: default;
|
61
61
|
padding: 4px;
|
62
62
|
}
|
63
63
|
|
@@ -36,6 +36,10 @@
|
|
36
36
|
position: relative;
|
37
37
|
padding: 4px 15px 4px 4px;
|
38
38
|
}
|
39
|
+
.tablesorter-grey .header,
|
40
|
+
.tablesorter-grey .tablesorter-header {
|
41
|
+
cursor: pointer;
|
42
|
+
}
|
39
43
|
.tablesorter-grey .header i,
|
40
44
|
.tablesorter-grey .tablesorter-header i {
|
41
45
|
width: 18px;
|
@@ -50,7 +54,6 @@
|
|
50
54
|
background-position: center right;
|
51
55
|
padding: 4px;
|
52
56
|
white-space: normal;
|
53
|
-
cursor: pointer;
|
54
57
|
}
|
55
58
|
.tablesorter-grey th.headerSortUp,
|
56
59
|
.tablesorter-grey th.tablesorter-headerSortUp,
|
@@ -78,6 +81,9 @@
|
|
78
81
|
/* white desc arrow */
|
79
82
|
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
80
83
|
}
|
84
|
+
.tablesorter-grey thead .sorter-false {
|
85
|
+
cursor: default;
|
86
|
+
}
|
81
87
|
.tablesorter-grey thead .sorter-false i {
|
82
88
|
background-image: none;
|
83
89
|
padding: 4px;
|
@@ -60,6 +60,7 @@
|
|
60
60
|
}
|
61
61
|
.tablesorter-ice thead .sorter-false {
|
62
62
|
background-image: none;
|
63
|
+
cursor: default;
|
63
64
|
padding: 4px;
|
64
65
|
}
|
65
66
|
|
@@ -122,6 +123,12 @@
|
|
122
123
|
background-color: #ebfafa;
|
123
124
|
}
|
124
125
|
|
126
|
+
/* sticky headers */
|
127
|
+
.tablesorter-ice.containsStickyHeaders thead tr:nth-child(1) th,
|
128
|
+
.tablesorter-ice.containsStickyHeaders thead tr:nth-child(1) td {
|
129
|
+
border-top: #ccc 1px solid;
|
130
|
+
}
|
131
|
+
|
125
132
|
/* caption */
|
126
133
|
caption {
|
127
134
|
background: #fff;
|
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.9.
|
4
|
+
version: 1.9.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: 2013-11-
|
12
|
+
date: 2013-11-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|