From 07d376bcc9ccf76fdd7dc04bc6606d36f27b524f Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 7 Apr 2014 18:01:51 +0200 Subject: [PATCH] Fix issue with message inline editor if no dropdown exists --- wcfsetup/install/files/js/WCF.Message.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 5214694837..82c3539db2 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -1169,7 +1169,9 @@ WCF.Message.InlineEditor = Class.extend({ // force closing dropdown to avoid displaying the dropdown after // triple clicks - this._dropdowns[this._container[$containerID].data('objectID')].removeClass('dropdownOpen'); + if (this._dropdowns[this._container[$containerID].data('objectID')]) { + this._dropdowns[this._container[$containerID].data('objectID')].removeClass('dropdownOpen'); + } if (event !== null) { event.stopPropagation(); -- 2.20.1