From 5a8a01c98489df46eb0b9763c23ff0546265f73b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 17 Nov 2016 12:50:00 +0100 Subject: [PATCH] Fixed dialog id collision --- wcfsetup/install/files/js/WCF.User.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index bac8b6a67d..ab8031be02 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -2469,8 +2469,11 @@ WCF.User.List = Class.extend({ if (this._cache[this._pageNo]) { var $dialogCreated = false; if (this._dialog === null) { - this._dialog = $('
').hide().appendTo(document.body); - $dialogCreated = true; + this._dialog = $('#userList' + this._className.hashCode()); + if (this._dialog.length === 0) { + this._dialog = $('
').hide().appendTo(document.body); + $dialogCreated = true; + } } // remove current view -- 2.20.1