Resizable: Don't save 'auto' table width. Closes #1514

This commit is contained in:
Rob Garrison 2018-02-14 10:23:51 -06:00
parent 8beec62953
commit 9d4cf1820d

View File

@ -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 */ /*jshint browser:true, jquery:true, unused:false */
;(function ($, window) { ;(function ($, window) {
'use strict'; 'use strict';
@ -389,7 +389,7 @@
if ( vars.overflow && vars.tableWidth ) { if ( vars.overflow && vars.tableWidth ) {
ts.resizable.setWidth( c.$table, vars.tableWidth, true ); ts.resizable.setWidth( c.$table, vars.tableWidth, true );
if ( vars.useStorage ) { 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++ ) { for ( index = 0; index < c.columns; index++ ) {
@ -405,7 +405,7 @@
// reset stickyHeader widths // reset stickyHeader widths
c.$table.triggerHandler( 'stickyHeadersUpdate' ); c.$table.triggerHandler( 'stickyHeadersUpdate' );
if ( ts.storage && !refreshing ) { if ( ts.storage && !refreshing ) {
ts.storage( this, ts.css.resizableStorage, {} ); ts.storage( this, ts.css.resizableStorage, [] );
} }
} }
}); });