diff options
author | Julius Haertl <jus@bitgrid.net> | 2016-07-15 14:45:05 +0200 |
---|---|---|
committer | Julius Haertl <jus@bitgrid.net> | 2016-07-15 14:45:05 +0200 |
commit | 3f47138d2791d64817644c755e6ab763d26ebc7b (patch) | |
tree | ed6790add16537b6c1d7a1981630402f0b4a5000 /apps | |
parent | 639be661c43c433b734f088c9ad123372f09e8d9 (diff) | |
download | nextcloud-server-3f47138d2791d64817644c755e6ab763d26ebc7b.tar.gz nextcloud-server-3f47138d2791d64817644c755e6ab763d26ebc7b.zip |
Theming: Fix spaces in settings-admin.js
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/js/settings-admin.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js index 172c6bd31ca..ca915bc9ffe 100644 --- a/apps/theming/js/settings-admin.js +++ b/apps/theming/js/settings-admin.js @@ -32,12 +32,12 @@ function setThemingValue(setting, value) { } function calculateLuminance(rgb) { - var hexValue = rgb.replace(/[^0-9A-Fa-f]/,''); + var hexValue = rgb.replace(/[^0-9A-Fa-f]/, ''); var r,g,b; - if(hexValue.length === 3) { + if (hexValue.length === 3) { hexValue = hexValue[0] + hexValue[0] + hexValue[1] + hexValue[1] + hexValue[2] + hexValue[2]; } - if(hexValue.length !== 6) { + if (hexValue.length !== 6) { return 0; } r = parseInt(hexValue.substring(0,2), 16); @@ -74,7 +74,7 @@ function preview(setting, value) { console.log(setting); var logos = document.getElementsByClassName('logo-icon'); var timestamp = new Date().getTime(); - if(value !== '') { + if (value !== '') { logos[0].style.background = "url('" + OC.generateUrl('/apps/theming/logo') + "?v" + timestamp + "')"; logos[0].style.backgroundSize = "62px 34px"; } else { |