mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: Prevent overwriting default widgetOptions. Fixes #1356
This commit is contained in:
parent
4913b2fc47
commit
98ae457aec
@ -1917,7 +1917,7 @@
|
|||||||
for ( indx = 0; indx < len; indx++ ) {
|
for ( indx = 0; indx < len; indx++ ) {
|
||||||
widget = ts.getWidgetById( c.widgets[ indx ] );
|
widget = ts.getWidgetById( c.widgets[ indx ] );
|
||||||
if ( widget && widget.options ) {
|
if ( widget && widget.options ) {
|
||||||
c.widgetOptions = $.extend( true, {}, widget.options, c.widgetOptions );
|
c.widgetOptions = $.extend( true, widget.options, c.widgetOptions );
|
||||||
// add widgetOptions to defaults for option validator
|
// add widgetOptions to defaults for option validator
|
||||||
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user