summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/js/settings-admin.js6
-rw-r--r--apps/theming/templates/settings-admin.php2
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js
index 44a799a19b4..7df1bbf1125 100644
--- a/apps/theming/js/settings-admin.js
+++ b/apps/theming/js/settings-admin.js
@@ -206,7 +206,11 @@ $(document).ready(function () {
});
$('#theming-color').change(function (e) {
- setThemingValue('color', '#' + $(this).val());
+ var color = $(this).val();
+ if (color.indexOf('#') !== 0) {
+ color = '#' + color;
+ }
+ setThemingValue('color', color);
});
$('.theme-undo').click(function (e) {
diff --git a/apps/theming/templates/settings-admin.php b/apps/theming/templates/settings-admin.php
index c7451e595d7..1b8ed87bb0d 100644
--- a/apps/theming/templates/settings-admin.php
+++ b/apps/theming/templates/settings-admin.php
@@ -62,7 +62,7 @@ style('theming', 'settings-admin');
<div>
<label>
<span><?php p($l->t('Color')) ?></span>
- <input id="theming-color" type="text" class="jscolor" maxlength="6" value="<?php p($_['color']) ?>" />
+ <input id="theming-color" type="text" class="jscolor" data-jscolor="{hash:true}" maxlength="7" value="<?php p($_['color']) ?>" />
<div data-setting="color" data-toggle="tooltip" data-original-title="<?php p($l->t('Reset to default')); ?>" class="theme-undo icon icon-history"></div>
</label>
</div>