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:
authorJulius Haertl <jus@bitgrid.net>2016-07-15 15:45:05 +0300
committerJulius Haertl <jus@bitgrid.net>2016-07-15 15:45:05 +0300
commit3f47138d2791d64817644c755e6ab763d26ebc7b (patch)
treeed6790add16537b6c1d7a1981630402f0b4a5000 /apps/theming/js
parent639be661c43c433b734f088c9ad123372f09e8d9 (diff)
Theming: Fix spaces in settings-admin.js
Diffstat (limited to 'apps/theming/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 {