mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Core: remove widgets before resetToLoadState
This commit is contained in:
parent
42f363c96f
commit
c36bba643a
@ -950,6 +950,8 @@
|
||||
ts.destroy(table, c, cb);
|
||||
})
|
||||
.bind("resetToLoadState" + c.namespace, function(e){
|
||||
// remove all widgets
|
||||
ts.refreshWidgets(table, true, true);
|
||||
// restore original settings; this clears out current settings, but does not clear
|
||||
// values saved to storage.
|
||||
c = $.extend(true, ts.defaults, c.originalSettings);
|
||||
|
Loading…
Reference in New Issue
Block a user