Merge pull request #5296 from owncloud/remove-chosen-hack

Removes the Bogus Label
This commit is contained in:
Morris Jobke 2013-10-11 12:30:59 -07:00
commit 6c85fc41aa
2 changed files with 1 additions and 7 deletions

View file

@ -171,10 +171,6 @@ $(document).ready(function(){
}
});
// Show only the not selectable optgroup
// Choosen only shows optgroup-labels if there are options in the optgroup
$(".languagedivider").hide();
$("#languageinput").change( function(){
// Serialize the data
var post = $( "#languageinput" ).serialize();

View file

@ -113,9 +113,7 @@ if($_['passwordChangeSupported']) {
<?php p($language['name']);?>
</option>
<?php endforeach;?>
<optgroup label="">
<option class="languagedivider">-</option>
</optgroup>
<optgroup label=""></optgroup>
<?php foreach($_['languages'] as $language):?>
<option value="<?php p($language['code']);?>">
<?php p($language['name']);?>