diff options
-rw-r--r-- | settings/js/personal.js | 1 | ||||
-rw-r--r-- | settings/templates/personal.php | 30 |
2 files changed, 20 insertions, 11 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index e9a6d4d33ff..e3a53181199 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -171,7 +171,6 @@ $(document).ready(function(){ } }); - $("#languageinput").chosen(); // Show only the not selectable optgroup // Choosen only shows optgroup-labels if there are options in the optgroup $(".languagedivider").hide(); diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 47227d6ea0f..d10413dac3d 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -104,19 +104,29 @@ if($_['passwordChangeSupported']) { <form> <fieldset class="personalblock"> <h2><?php p($l->t('Language'));?></h2> - <select id="languageinput" class="chzen-select" name="lang" data-placeholder="<?php p($l->t('Language'));?>"> - <option value="<?php p($_['activelanguage']['code']);?>"><?php p($_['activelanguage']['name']);?></option> - <?php foreach($_['commonlanguages'] as $language):?> - <option value="<?php p($language['code']);?>"><?php p($language['name']);?></option> - <?php endforeach;?> - <optgroup label="––––––––––"><option class="languagedivider">-</option></optgroup> - <?php foreach($_['languages'] as $language):?> - <option value="<?php p($language['code']);?>"><?php p($language['name']);?></option> - <?php endforeach;?> + <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>"> + <option value="<?php p($_['activelanguage']['code']);?>"> + <?php p($_['activelanguage']['name']);?> + </option> + <?php foreach($_['commonlanguages'] as $language):?> + <option value="<?php p($language['code']);?>"> + <?php p($language['name']);?> + </option> + <?php endforeach;?> + <optgroup label="––––––––––"> + <option class="languagedivider">-</option> + </optgroup> + <?php foreach($_['languages'] as $language):?> + <option value="<?php p($language['code']);?>"> + <?php p($language['name']);?> + </option> + <?php endforeach;?> </select> <?php if (OC_Util::getEditionString() === ''): ?> <a href="https://www.transifex.com/projects/p/owncloud/team/<?php p($_['activelanguage']['code']);?>/" - target="_blank"><em><?php p($l->t('Help translate'));?></em></a> + target="_blank"> + <em><?php p($l->t('Help translate'));?></em> + </a> <?php endif; ?> </fieldset> </form> |