[DE] Fix opening symbol table dialog
This commit is contained in:
parent
f2d2ef5fc3
commit
5aed3e8b51
|
@ -2475,9 +2475,11 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onInsertSymbolClick: function() {
|
onInsertSymbolClick: function() {
|
||||||
|
if (this.dlgSymbolTable && this.dlgSymbolTable.isVisible()) return;
|
||||||
|
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
var me = this,
|
var me = this;
|
||||||
win = new Common.Views.SymbolTableDialog({
|
me.dlgSymbolTable = new Common.Views.SymbolTableDialog({
|
||||||
api: me.api,
|
api: me.api,
|
||||||
lang: me.mode.lang,
|
lang: me.mode.lang,
|
||||||
modal: false,
|
modal: false,
|
||||||
|
@ -2490,8 +2492,8 @@ define([
|
||||||
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
win.show();
|
me.dlgSymbolTable.show();
|
||||||
win.on('symbol:dblclick', function(cmp, settings) {
|
me.dlgSymbolTable.on('symbol:dblclick', function(cmp, settings) {
|
||||||
me.api.pluginMethod_PasteHtml("<span style=\"font-family:'" + settings.font + "'\">" + settings.symbol + "</span>");
|
me.api.pluginMethod_PasteHtml("<span style=\"font-family:'" + settings.font + "'\">" + settings.symbol + "</span>");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue