Hides message edit dropdown after triple clicks
authorMatthias Schmidt <gravatronics@live.com>
Sun, 23 Mar 2014 18:21:22 +0000 (19:21 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 23 Mar 2014 18:21:22 +0000 (19:21 +0100)
wcfsetup/install/files/js/WCF.Message.js

index f3033f45b6cb73806f4df2f98a111997533d447b..776ad462779a8a1d18a9977b1f99041f5fec3dcf 100644 (file)
@@ -1167,6 +1167,10 @@ WCF.Message.InlineEditor = Class.extend({
                        $notification.show();
                }
                
+               // force closing dropdown to avoid displaying the dropdown after
+               // triple clicks
+               this._dropdowns[this._container[$containerID].data('objectID')].removeClass('dropdownOpen');
+               
                if (event !== null) {
                        event.stopPropagation();
                        return false;