diff options
author | kondou <kondou@ts.unde.re> | 2013-04-19 00:39:42 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-04-19 00:39:42 +0200 |
commit | 7a2be0c5dc487d2c2e3dbef67cfa1c5cf2af462e (patch) | |
tree | 1fb283aef29a6da42862a04a80151b62bd0a2c8d /settings/js | |
parent | 79218be1d2214095eae1272eac7559a67a55a786 (diff) | |
download | nextcloud-server-7a2be0c5dc487d2c2e3dbef67cfa1c5cf2af462e.tar.gz nextcloud-server-7a2be0c5dc487d2c2e3dbef67cfa1c5cf2af462e.zip |
Make divider not selectable
Very hacky
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/personal.js | 7 |
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 |