mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
ColumnSelector: Prevent refresh error. See #1145
This commit is contained in:
parent
06c1d3a2be
commit
b40693a954
2
dist/js/widgets/widget-columnSelector.min.js
vendored
2
dist/js/widgets/widget-columnSelector.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4994,7 +4994,7 @@ $("table").trigger("updateAll", [ resort, callback ]);</pre></div>
|
|||||||
};
|
};
|
||||||
$.tablesorter.updateCache( config, callback, $tbodies );</pre>
|
$.tablesorter.updateCache( config, callback, $tbodies );</pre>
|
||||||
<h4>Triggered event method:</h4>
|
<h4>Triggered event method:</h4>
|
||||||
<p>In <span class="version updated">v2.22.2</span>, a new parameter was added to allow passing a jQuery object containing tbodies (for the tbody sorting widget)</p>
|
<p><span class="label label-warning">*NOTE*</span> In <span class="version updated">v2.22.2</span>, a new parameter was added to allow passing a jQuery object containing tbodies to be added to the table (for the tbody sorting widget).</p>
|
||||||
<p>This method is used by the pager (addon & widget) to update the data stored within the cache after the content has been updated using ajax.</p>
|
<p>This method is used by the pager (addon & widget) to update the data stored within the cache after the content has been updated using ajax.</p>
|
||||||
<pre class="prettyprint lang-js">// optional callback function
|
<pre class="prettyprint lang-js">// optional callback function
|
||||||
var callback = function( table ){ /* do something */ },
|
var callback = function( table ){ /* do something */ },
|
||||||
|
@ -478,7 +478,7 @@
|
|||||||
},
|
},
|
||||||
remove: function(table, c, wo, refreshing) {
|
remove: function(table, c, wo, refreshing) {
|
||||||
var csel = c.selector;
|
var csel = c.selector;
|
||||||
csel.$container.empty();
|
if ( csel) { csel.$container.empty(); }
|
||||||
if ( refreshing || !csel ) { return; }
|
if ( refreshing || !csel ) { return; }
|
||||||
if (csel.$popup) { csel.$popup.empty(); }
|
if (csel.$popup) { csel.$popup.empty(); }
|
||||||
csel.$style.remove();
|
csel.$style.remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user