From: kondou Date: Thu, 18 Apr 2013 22:39:42 +0000 (+0200) Subject: Make divider not selectable X-Git-Tag: v6.0.0alpha2~840^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a2be0c5dc487d2c2e3dbef67cfa1c5cf2af462e;p=nextcloud-server.git Make divider not selectable Very hacky --- 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 diff --git a/settings/templates/personal.php b/settings/templates/personal.php index c0fcf5c1bd6..67307872058 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -82,7 +82,7 @@ if($_['displayNameChangeSupported']) { - +