summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-05-11 15:57:32 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-05-11 15:57:32 +0200
commit84ab102146f4a9443ef1b6382f049eac99b85c6b (patch)
tree84cd381ab267f0ccdea30766eb888be0d7749b93 /apps
parent850e2256f3dee5f94b407ea6b8d85fb84d170eb5 (diff)
downloadnextcloud-server-84ab102146f4a9443ef1b6382f049eac99b85c6b.tar.gz
nextcloud-server-84ab102146f4a9443ef1b6382f049eac99b85c6b.zip
fix undo for url-typed inputs
and minor adjustments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/css/settings-admin.scss6
-rw-r--r--apps/theming/js/settings-admin.js3
-rw-r--r--apps/theming/templates/settings-admin.php4
3 files changed, 9 insertions, 4 deletions
diff --git a/apps/theming/css/settings-admin.scss b/apps/theming/css/settings-admin.scss
index 00d1cb96fc6..7753540ccd2 100644
--- a/apps/theming/css/settings-admin.scss
+++ b/apps/theming/css/settings-admin.scss
@@ -46,7 +46,11 @@
input[type='text']:hover + .theme-undo,
input[type='text'] + .theme-undo:hover,
input[type='text']:focus + .theme-undo,
- input[type='text']:active + .theme-undo {
+ input[type='text']:active + .theme-undo,
+ input[type='url']:hover + .theme-undo,
+ input[type='url'] + .theme-undo:hover,
+ input[type='url']:focus + .theme-undo,
+ input[type='url']:active + .theme-undo{
visibility: visible;
}
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js
index 028d08c151a..76d9fb965ca 100644
--- a/apps/theming/js/settings-admin.js
+++ b/apps/theming/js/settings-admin.js
@@ -83,7 +83,8 @@ function hideUndoButton(setting, value) {
url: 'https://nextcloud.com',
color: '#0082c9',
logoMime: '',
- backgroundMime: ''
+ backgroundMime: '',
+ imprintUrl: ''
};
if (value === themingDefaults[setting] || value === '') {
diff --git a/apps/theming/templates/settings-admin.php b/apps/theming/templates/settings-admin.php
index 9fccd2f1e0e..7df92c335c2 100644
--- a/apps/theming/templates/settings-admin.php
+++ b/apps/theming/templates/settings-admin.php
@@ -48,7 +48,7 @@ style('theming', 'settings-admin');
<div>
<label>
<span><?php p($l->t('Web address')) ?></span>
- <input id="theming-url" type="url" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>" maxlength="500" />
+ <input id="theming-url" type="url" placeholder="<?php p($l->t('https://…')); ?>" value="<?php p($_['url']) ?>" maxlength="500" />
<div data-setting="url" data-toggle="tooltip" data-original-title="<?php p($l->t('Reset to default')); ?>" class="theme-undo icon icon-history"></div>
</label>
</div>
@@ -97,7 +97,7 @@ style('theming', 'settings-admin');
<div>
<label>
<span><?php p($l->t('Legal notice address')) ?></span>
- <input id="theming-imprintUrl" type="url" placeholder="<?php p($l->t('Legal notice address https://…')); ?>" value="<?php p($_['imprintUrl']) ?>" maxlength="500" />
+ <input id="theming-imprintUrl" type="url" placeholder="<?php p($l->t('https://…')); ?>" value="<?php p($_['imprintUrl']) ?>" maxlength="500" />
<div data-setting="imprintUrl" data-toggle="tooltip" data-original-title="<?php p($l->t('Reset to default')); ?>" class="theme-undo icon icon-history"></div>
</label>
</div>