Skip to content

Commit

Permalink
ColumnSelector: Prevent refresh error. See #1145
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Jan 28, 2016
1 parent 06c1d3a commit b40693a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/widgets/widget-columnSelector.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4994,7 +4994,7 @@ <h4>Direct method:</h4>
};
$.tablesorter.updateCache( config, callback, $tbodies );</pre>
<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 &amp; 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
var callback = function( table ){ /* do something */ },
Expand Down
2 changes: 1 addition & 1 deletion js/widgets/widget-columnSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
},
remove: function(table, c, wo, refreshing) {
var csel = c.selector;
csel.$container.empty();
if ( csel) { csel.$container.empty(); }
if ( refreshing || !csel ) { return; }
if (csel.$popup) { csel.$popup.empty(); }
csel.$style.remove();
Expand Down

0 comments on commit b40693a

Please sign in to comment.