From bd16ec38e6342eea51e597235a64a410c9c020c4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 18 Mar 2013 20:21:16 +0100 Subject: [PATCH] Prevented JS error for script-tags passed to wcfDialog() --- wcfsetup/install/files/js/WCF.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 0b81b9f2be..937e62733d 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7599,6 +7599,7 @@ $.widget('ui.wcfDialog', { // ignore script tags if ($(element).getTagName() === 'script') { console.debug("[ui.wcfDialog] Ignored script tag"); + this.element = false; return null; } @@ -7701,6 +7702,11 @@ $.widget('ui.wcfDialog', { * Opens this dialog. */ open: function() { + // ignore script tags + if (this.element === false) { + return; + } + if (this.isOpen()) { return; } -- 2.20.1