Prevented multiple spawns of the same inlineedit menu
authorAlexander Ebert <ebert@woltlab.com>
Mon, 27 Feb 2012 16:16:24 +0000 (17:16 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 27 Feb 2012 16:16:24 +0000 (17:16 +0100)
wcfsetup/install/files/js/WCF.js

index 424d0964b0b7bc8799e49d5f0008cd27e8974aa5..0c851cdb2992a556b46fb55c5f90e8418b59cd88 100644 (file)
@@ -3796,6 +3796,7 @@ WCF.InlineEditor = Class.extend({
                        var $trigger = this._getTriggerElement(this._elements[$elementID]).wrap('<span />');
                        this._dropdowns[$elementID] = $('<ul class="wcf-dropdown" />').insertAfter($trigger);
                }
+               this._dropdowns[$elementID].empty();
                
                // validate options
                var $hasOptions = false;