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:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-05-09 16:52:41 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-05-09 16:52:41 +0300
commit62f1156a56a671cb593c0531922976914b1d4fa9 (patch)
tree7bc7e28895aee8e29bfc6d4ce7a19a1ee4bd64eb /apps/theming/js
parent57ea4624741c36ed6e68f60c672ddddbfece628a (diff)
allow to specify a link to a legal notice
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/theming/js')
-rw-r--r--apps/theming/js/settings-admin.js23
1 files changed, 13 insertions, 10 deletions
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js
index 25ac092a964..028d08c151a 100644
--- a/apps/theming/js/settings-admin.js
+++ b/apps/theming/js/settings-admin.js
@@ -175,7 +175,7 @@ $(document).ready(function () {
var el = $(this);
});
- $('#theming input[type=text]').change(function(e) {
+ function onChange(e) {
var el = $(this);
var setting = el.parent().find('div[data-setting]').data('setting');
var value = $(this).val();
@@ -186,14 +186,14 @@ $(document).ready(function () {
}
}
if(setting === 'name') {
- if(checkName()){
- $.when(el.focusout()).then(function() {
- setThemingValue('name', value);
- });
- if (e.keyCode == 13) {
- setThemingValue('name', value);
- }
- }
+ if(checkName()){
+ $.when(el.focusout()).then(function() {
+ setThemingValue('name', value);
+ });
+ if (e.keyCode == 13) {
+ setThemingValue('name', value);
+ }
+ }
}
$.when(el.focusout()).then(function() {
@@ -202,7 +202,10 @@ $(document).ready(function () {
if (e.keyCode == 13) {
setThemingValue(setting, value);
}
- });
+ };
+
+ $('#theming input[type="text"]').change(onChange);
+ $('#theming input[type="url"]').change(onChange);
$('.theme-undo').click(function (e) {
var setting = $(this).data('setting');