diff --git a/apps/common/main/lib/view/SymbolTableDialog.js b/apps/common/main/lib/view/SymbolTableDialog.js index a0e808329..af5fa5231 100644 --- a/apps/common/main/lib/view/SymbolTableDialog.js +++ b/apps/common/main/lib/view/SymbolTableDialog.js @@ -366,14 +366,24 @@ define([ options: { resizable : true, minwidth : 448, - minheight : 396, + minheight : 434, width: 448, - height: 396, + height: 434, cls: 'modal-dlg', buttons: ['ok', 'cancel'] }, initialize : function(options) { + var config = { + resizable : true, + minwidth : 448, + minheight : 434, + width: 448, + height: 434, + cls: 'modal-dlg', + buttons: ['ok', 'cancel'] + }; + var filter = Common.localStorage.getKeysFilter(); this.appPrefix = (filter && filter.length) ? filter.split(',')[0] : ''; @@ -385,70 +395,96 @@ define([ } size = size ? JSON.parse(size) : []; - _.extend(this.options, { + this.options = _.extend(config, { title: this.textTitle, width : size[0] || 448, - height : size[1] || 396 + height : size[1] || 434 }, options || {}); + this.api = this.options.api; + this.type = this.options.type || 0; // 0 - close on OK, single adding symbol + this.special = this.options.special || false; // true - show special tab + this.showShortcutKey = this.options.showShortcutKey || false; + !this.special && (this.options.height -= 38); + !this.special && (this.options.minheight -= 38); + this.template = [ '
', - '', - '', - ' | ', - '', - '', - '', - ' | ', - '
',
- ' ',
- ' ',
- ' ',
- ' ',
- ' ',
+ ' ',
+ '',
+ '',
+ ' ',
+ '',
+ '
| ',
+ '||||||||
', + '', + '', + ' | ', + '
', + '', + ' | ', + '', + ' | ', + '
', + '', + ' | ', + '', + '', + ' | ', + '
', + '', + '', + ' | ', + '
', + '', + ' | ', + '