Fixes WCF.MultipleLanguageInput
authorMatthias Schmidt <gravatronics@live.com>
Sat, 7 Jul 2012 05:10:30 +0000 (07:10 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 7 Jul 2012 05:10:30 +0000 (07:10 +0200)
wcfsetup/install/files/js/WCF.js

index ee0a3fc8be30ced94562600f9680b3f809b05cf7..1b9fd3114ee59962c13be50f497905ddc922e78f 100755 (executable)
@@ -2219,6 +2219,9 @@ WCF.MultipleLanguageInput.prototype = {
         * @param       boolean         enableOnInit
         */
        _prepareElement: function(enableOnInit) {
+               // enable DOMNodeInserted event
+               WCF.DOMNodeInsertedHandler.enable();
+               
                this._element.wrap('<div class="dropdown preInput" />');
                var $wrapper = this._element.parent();
                var $button = $('<p class="button dropdownToggle"><span>' + WCF.Language.get('wcf.global.button.disabledI18n') + '</span></p>').prependTo($wrapper);
@@ -2268,6 +2271,9 @@ WCF.MultipleLanguageInput.prototype = {
                }
                
                WCF.Dropdown.registerCallback($wrapper.wcfIdentify(), $.proxy(this._handleAction, this));
+               
+               // enable DOMNodeInserted event
+               WCF.DOMNodeInsertedHandler.disable();
        },
        
        /**
@@ -5094,7 +5100,7 @@ WCF.Popover = Class.extend({
         */
        _defaultDimensions: {
                height: 150,
-               width: 450,
+               width: 450
        },
        
        /**