mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Resizable: Don't save 'auto' table width. Closes #1514
This commit is contained in:
parent
8beec62953
commit
9d4cf1820d
@ -1,4 +1,4 @@
|
||||
/*! Widget: resizable - updated 12/13/2017 (v2.29.1) */
|
||||
/*! Widget: resizable - updated 2018-02-14 (v2.29.6) */
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
;(function ($, window) {
|
||||
'use strict';
|
||||
@ -389,7 +389,7 @@
|
||||
if ( vars.overflow && vars.tableWidth ) {
|
||||
ts.resizable.setWidth( c.$table, vars.tableWidth, true );
|
||||
if ( vars.useStorage ) {
|
||||
ts.storage( table, 'tablesorter-table-resized-width', 'auto' );
|
||||
ts.storage( table, 'tablesorter-table-resized-width', vars.tableWidth );
|
||||
}
|
||||
}
|
||||
for ( index = 0; index < c.columns; index++ ) {
|
||||
@ -405,7 +405,7 @@
|
||||
// reset stickyHeader widths
|
||||
c.$table.triggerHandler( 'stickyHeadersUpdate' );
|
||||
if ( ts.storage && !refreshing ) {
|
||||
ts.storage( this, ts.css.resizableStorage, {} );
|
||||
ts.storage( this, ts.css.resizableStorage, [] );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user