Fixes marking of monolingual i18n-dropdown option
authorMatthias Schmidt <gravatronics@live.com>
Wed, 2 Oct 2013 08:36:03 +0000 (10:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 2 Oct 2013 08:36:03 +0000 (10:36 +0200)
wcfsetup/install/files/js/WCF.js

index 9a4c7b39ecc14e39129b01b1159e08d081a40de0..d171e857bae72d88a4378219b0018cafd15f5c42 100755 (executable)
@@ -3491,6 +3491,11 @@ WCF.MultipleLanguageInput = Class.extend({
                        this._element.val();
                }
                
+               if (event) {
+                       this._list.children('li').removeClass('active');
+                       $(event.currentTarget).addClass('active');
+               }
+               
                this._element.blur().focus();
                this._insertedDataAfterInit = false;
                this._isEnabled = false;