Project

General

Profile

Bug #18440 ยป rtehtmlarea_bugfix_7852.patch

Administrator Admin, 2008-03-14 01:06

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (working copy)
*/
close : function () {
if (this.dialogWindow) {
if (this.dialogWindow.openedDialog) {
this.dialogWindow.openedDialog.close();
}
try {
if (this.dialogWindow.openedDialog) {
this.dialogWindow.openedDialog.close();
}
} catch(e) { }
this.releaseEvents();
HTMLArea.Dialog[this.plugin.name] = null;
if (!this.dialogWindow.closed) {
......
releaseEvents : function() {
if (this.dialogWindow) {
HTMLArea._removeEvent(this.dialogWindow, "unload", this.unloadFunctionReference);
if (this.dialogWindow.document) {
HTMLArea._removeEvent(this.dialogWindow.document, "keypress", this.escapeFunctionReference);
}
if (this.dialogWindow.opener && !this.dialogWindow.opener.closed) {
HTMLArea._removeEvent(this.dialogWindow.opener, "unload", this.unloadFunctionReference);
if (HTMLArea.is_gecko) {
this.releaseFocus(this.dialogWindow.opener);
try {
if (this.dialogWindow.document) {
HTMLArea._removeEvent(this.dialogWindow.document, "keypress", this.escapeFunctionReference);
}
}
} catch(e) { }
try {
if (this.dialogWindow.opener && !this.dialogWindow.opener.closed) {
HTMLArea._removeEvent(this.dialogWindow.opener, "unload", this.unloadFunctionReference);
if (HTMLArea.is_gecko) {
this.releaseFocus(this.dialogWindow.opener);
}
}
} catch(e) { }
}
if (HTMLArea.is_gecko && this.plugin.editor._iframe.contentWindow) {
HTMLArea._removeEvent(this.plugin.editor._iframe.contentWindow, "unload", this.unloadFunctionReference);
    (1-1/1)