jquery-tablesorter 1.25.5 → 1.26.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 500efd982b7de96ff24db41cbab4f5d62c5b243c0ecf7397ce8fa0c8ca4c15f0
4
- data.tar.gz: b3473cd63b3cd2bf6ce64c121fe17e14caf3d794d9de3c4c0365770f168d124e
3
+ metadata.gz: f99874ff343b38a13e5ac0be4fd890e6b85adf676de40a620406a49fa38f4cd4
4
+ data.tar.gz: d5de1937947ff8257c06370d173062291eb40e600f9a76f82f3e83dc5d6466ec
5
5
  SHA512:
6
- metadata.gz: 8cd5484f37cd7b71f96a94f3168e6250e8485b20d41c4287f32cb3cbafe055664d477a6c2a1b921e84cf6788098d8c31b6df74cc23cb7c598e9656a86b110b38
7
- data.tar.gz: cf6528ab3ba34a7b3bac83c7c1891d52eec1fc35b8321250ff95a872f5925aa0f4d8eef423c125781a30687170a5c1c35c8226721512761323ee2f1077178308
6
+ metadata.gz: 787673dd09f9c8233b8804e1c639a50c8e1f3da88a7c6bbbc7b90396d86bacf6c5cf44540d9ebb41a9d31acbfb7ae520617f48a63cb241ca8ca2a17e5c047d6a
7
+ data.tar.gz: 5c5e43a2a5592ad422149ed180aa04a243f25ea77063adc1eddb43571a969107cada4af9127b863702514857ebac9496b37548a3e73b86f70fd3554cdc64190d
@@ -1,4 +1,4 @@
1
- Copyright 2016 Jun Lin, Erik-B. Ernst
1
+ Copyright 2018 Jun Lin, Erik-B. Ernst
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Simple integration of jQuery tablesorter ([Mottie's fork]) into the asset pipeline.
6
6
 
7
- Current tablesorter version: 2.30.7 (2018-07-10) [documentation]
7
+ Current tablesorter version: 2.31.0 (2018-08-27) [documentation]
8
8
 
9
9
  Any issue associated with the js/css files, please report to [Mottie's fork].
10
10
 
@@ -1,7 +1,7 @@
1
1
  module JqueryTablesorter
2
2
  MAJOR = 1
3
- MINOR = 25
4
- TINY = 5
3
+ MINOR = 26
4
+ TINY = 0
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].compact.join('.')
7
7
  end
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * tablesorter (FORK) pager plugin
3
- * updated 2018-03-26 (v2.30.2)
3
+ * updated 2018-08-27 (v2.31.0)
4
4
  */
5
5
  /*jshint browser:true, jquery:true, unused:false */
6
6
  ;(function($) {
@@ -52,7 +52,7 @@
52
52
  // ],
53
53
  // [ "header1", "header2", ... "headerN" ] // optional
54
54
  // ]
55
- ajaxProcessing: function( /* ajax */ ) { return [ 0, [], null ]; },
55
+ ajaxProcessing: function(data) { return data; },
56
56
 
57
57
  // output default: '{page}/{totalPages}'
58
58
  // possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow},
@@ -4,19 +4,10 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 2018-07-10 (v2.30.7)*/
7
+ /*! tablesorter (FORK) - updated 2018-08-27 (v2.31.0)*/
8
8
  /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
9
- (function(factory) {
10
- if (typeof define === 'function' && define.amd) {
11
- define(['jquery'], factory);
12
- } else if (typeof module === 'object' && typeof module.exports === 'object') {
13
- module.exports = factory(require('jquery'));
14
- } else {
15
- factory(jQuery);
16
- }
17
- }(function(jQuery) {
18
-
19
- /*! TableSorter (FORK) v2.30.7 *//*
9
+ (function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery) {
10
+ /*! TableSorter (FORK) v2.31.0 *//*
20
11
  * Client-side table sorting with ease!
21
12
  * @requires jQuery v1.2.6+
22
13
  *
@@ -40,7 +31,7 @@
40
31
  'use strict';
41
32
  var ts = $.tablesorter = {
42
33
 
43
- version : '2.30.7',
34
+ version : '2.31.0',
44
35
 
45
36
  parsers : [],
46
37
  widgets : [],
@@ -6101,6 +6092,4 @@
6101
6092
  });
6102
6093
 
6103
6094
  })(jQuery);
6104
-
6105
- return jQuery.tablesorter;
6106
- }));
6095
+ return jQuery.tablesorter;}));
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.30.7 *//*
1
+ /*! TableSorter (FORK) v2.31.0 *//*
2
2
  * Client-side table sorting with ease!
3
3
  * @requires jQuery v1.2.6+
4
4
  *
@@ -22,7 +22,7 @@
22
22
  'use strict';
23
23
  var ts = $.tablesorter = {
24
24
 
25
- version : '2.30.7',
25
+ version : '2.31.0',
26
26
 
27
27
  parsers : [],
28
28
  widgets : [],
@@ -4,18 +4,9 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 2018-07-10 (v2.30.7)*/
7
+ /*! tablesorter (FORK) - updated 2018-08-27 (v2.31.0)*/
8
8
  /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
9
- (function(factory) {
10
- if (typeof define === 'function' && define.amd) {
11
- define(['jquery'], factory);
12
- } else if (typeof module === 'object' && typeof module.exports === 'object') {
13
- module.exports = factory(require('jquery'));
14
- } else {
15
- factory(jQuery);
16
- }
17
- }(function(jQuery) {
18
-
9
+ (function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery) {
19
10
  /*! Widget: storage - updated 2018-03-18 (v2.30.0) */
20
11
  /*global JSON:false */
21
12
  ;(function ($, window, document) {
@@ -3188,6 +3179,4 @@
3188
3179
  });
3189
3180
 
3190
3181
  })(jQuery);
3191
-
3192
- return jQuery.tablesorter;
3193
- }));
3182
+ return jQuery.tablesorter;}));
@@ -1,4 +1,4 @@
1
- /*! Widget: editable - updated 4/4/2017 (v2.28.7) *//*
1
+ /*! Widget: editable - updated 2018-08-27 (v2.31.0) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -85,6 +85,16 @@
85
85
  return cols;
86
86
  },
87
87
 
88
+ trimContent: function( wo, $cell ) {
89
+ if ( wo.editable_trimContent ) {
90
+ var html = $cell.html();
91
+ if (html.trim() !== html) {
92
+ // Add   to bypass Firefox issue - see #1570
93
+ $cell.html( html === '' ? ' ' : html );
94
+ }
95
+ }
96
+ },
97
+
88
98
  update: function( c, wo ) {
89
99
  var $t, $cells, cellIndex, cellLen, $editable, editableIndex, editableLen,
90
100
  tmp = $( '<div>' ).wrapInner( wo.editable_wrapContent ).children().length || $.isFunction( wo.editable_wrapContent ),
@@ -104,6 +114,9 @@
104
114
  $t = $cells.eq( cellIndex );
105
115
  if ( tmp && $t.children( 'div, span' ).length === 0 ) {
106
116
  $t.wrapInner( wo.editable_wrapContent );
117
+ if ($t.children().text().trim() === '') {
118
+ $t.children().html('&nbsp;');
119
+ }
107
120
  }
108
121
  $editable = $t.children( 'div, span' ).not( '.' + wo.editable_noEdit );
109
122
  editableLen = $editable.length;
@@ -111,19 +124,11 @@
111
124
  // make div/span children content editable
112
125
  for ( editableIndex = 0; editableIndex < editableLen; editableIndex++ ) {
113
126
  var $this = $editable.eq( editableIndex );
114
- if ( wo.editable_trimContent ) {
115
- $this.html( function( i, txt ) {
116
- return $.trim( txt );
117
- });
118
- }
127
+ tse.trimContent( wo, $this );
119
128
  $this.prop( 'contenteditable', true );
120
129
  }
121
130
  } else {
122
- if ( wo.editable_trimContent ) {
123
- $t.html( function( i, txt ) {
124
- return $.trim( txt );
125
- });
126
- }
131
+ tse.trimContent( wo, $t );
127
132
  $t.prop( 'contenteditable', true );
128
133
  }
129
134
  }
@@ -160,7 +165,7 @@
160
165
  column = $this.closest( 'td' ).index(),
161
166
  txt = $this.html();
162
167
  if ( wo.editable_trimContent ) {
163
- txt = $.trim( txt );
168
+ txt = $.trim( txt === '' ? '&nbsp;' : txt );
164
169
  }
165
170
  // prevent enter from adding into the content
166
171
  $this
@@ -194,7 +199,7 @@
194
199
  txt = $this.html(),
195
200
  column = $this.closest( 'td' ).index();
196
201
  if ( wo.editable_trimContent ) {
197
- txt = $.trim( txt );
202
+ txt = $.trim( txt === '' ? '&nbsp;' : txt );
198
203
  }
199
204
  if ( e.which === 27 ) {
200
205
  // user cancelled
@@ -1,4 +1,4 @@
1
- /*! Widget: Pager - updated 2018-03-26 (v2.30.2) */
1
+ /*! Widget: Pager - updated 2018-08-27 (v2.31.0) */
2
2
  /* Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -91,7 +91,7 @@
91
91
  // ],
92
92
  // [ "header1", "header2", ... "headerN" ] // optional
93
93
  // ]
94
- pager_ajaxProcessing: function( /* ajax */ ) { return [ 0, [], null ]; },
94
+ pager_ajaxProcessing: function( data ) { return data; },
95
95
 
96
96
  // css class names of pager arrows
97
97
  pager_css: {
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.25.5
4
+ version: 1.26.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: 2018-08-20 00:00:00.000000000 Z
12
+ date: 2018-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties