summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/personal.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 271de1599d9..db18b2861ab 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -86,12 +86,11 @@ $(document).ready(function(){
});
$("#languageinput").chosen();
+ // Show only the not selectable optgroup
+ // Choosen only shows optgroup-labels if there are options in the optgroup
+ $(".languagedivider").remove();
$("#languageinput").change( function(){
- // the divider is no language
- if ($("#languageinput option").hasClass('divider')) {
- return false;
- }
// Serialize the data
var post = $( "#languageinput" ).serialize();
// Ajax foo