var _this = this; this.tag = this.command == 'insertImage' ? 'img' : 'a'; var messages = dojo.i18n.getLocalization("dijit._editor", "LinkDialog", this.lang); var dropDown = (this.dropDown = new dijit.TooltipDialog({ title: messages[this.command + "Title"], execute: dojo.hitch(this, "setValue"), onOpen: function(){ _this._onOpenDialog(); dijit.TooltipDialog.prototype.onOpen.apply(this, arguments); }, onCancel: function(){ setTimeout(dojo.hitch(_this, "_onCloseDialog"),0); }, onClose: dojo.hitch(this, "_onCloseDialog") })); messages.urlRegExp = this.urlRegExp; messages.id = dijit.getUniqueId(this.editor.id); this._setContent(dropDown.title + "<div style='border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'></div>" + dojo.string.substitute(this.linkDialogTemplate, messages)); dropDown.startup(); this.inherited(arguments);