fixed addwidget option method

This commit is contained in:
Mottie 2013-03-18 19:48:24 -05:00
parent e9ca100372
commit a1106c0fc0

View File

@ -1117,7 +1117,7 @@
w = ts.getWidgetById(ws[i]); w = ts.getWidgetById(ws[i]);
if ( w ) { if ( w ) {
if (init) { if (init) {
if (w.hasOwnProperty('options')) { $.extend( true, wo, w.options ); } if (w.hasOwnProperty('options')) { $.extend( true, w.options, wo ); }
if (w.hasOwnProperty('init')) { w.init(table, w, c, wo); } if (w.hasOwnProperty('init')) { w.init(table, w, c, wo); }
} else if (!init && w.hasOwnProperty('format')) { } else if (!init && w.hasOwnProperty('format')) {
w.format(table, c, wo, false); w.format(table, c, wo, false);