summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-07-15 14:45:05 +0200
committerJulius Haertl <jus@bitgrid.net>2016-07-15 14:45:05 +0200
commit3f47138d2791d64817644c755e6ab763d26ebc7b (patch)
treeed6790add16537b6c1d7a1981630402f0b4a5000
parent639be661c43c433b734f088c9ad123372f09e8d9 (diff)
downloadnextcloud-server-3f47138d2791d64817644c755e6ab763d26ebc7b.tar.gz
nextcloud-server-3f47138d2791d64817644c755e6ab763d26ebc7b.zip
Theming: Fix spaces in settings-admin.js
-rw-r--r--apps/theming/js/settings-admin.js8
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 {