Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraghunayyar <me@iraghu.com>2013-10-11 16:33:53 +0400
committerraghunayyar <me@iraghu.com>2013-10-11 16:33:53 +0400
commite27bb660bd5f205f912d141aa83dbeeacf2b7555 (patch)
tree68410aa7dbd6478dbc6c4cd8d3624b4e9aeb0a4d /settings
parentb9bfe319813811a7291fb35b54424988a5985245 (diff)
Uniform Styles and Indentation Fixes for Personal Block
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js1
-rw-r--r--settings/templates/personal.php30
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>