diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-06-22 14:44:33 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-06-27 11:26:24 +0300 |
commit | 79269427d715edbae61bfe3775e0d55d734fe11b (patch) | |
tree | 76706e349b7f7f38f5daed17f3da9c5702e04460 /apps | |
parent | b7e91c5c3a0d2c63fa4768082559854c1b18c490 (diff) |
scale preview image
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/js/settings-admin.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js index 8ce76a2ccf2..cd650fc0aca 100644 --- a/apps/theming/js/settings-admin.js +++ b/apps/theming/js/settings-admin.js @@ -6,7 +6,7 @@ * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the + * published by the Free Software Foundation, either version 3 of the * License, or (at your opinion) any later version. * * This program is distributed in the hope that it will be useful, @@ -42,8 +42,10 @@ function preview(setting, value) { var logos = document.getElementsByClassName('logo-icon'); if(value !== '') { logos[0].style.background = "url('" + OC.generateUrl('/apps/theming/logo') + "')"; + logos[0].style.backgroundSize = "62px 34px"; } else { logos[0].style.background = "url('" + OC.getRootPath() + '/core/img/logo-icon.svg'+"')"; + logos[0].style.backgroundSize = "62px 34px"; } } } @@ -78,7 +80,7 @@ $(document).ready(function () { OC.msg.finishedSaving('#theming_settings_msg', response); } }; - + $('#uploadlogo').fileupload(uploadParamsLogo); $('#upload-login-background').fileupload(uploadParamsLogin); @@ -109,7 +111,7 @@ $(document).ready(function () { $('#theming-color').change(function (e) { setThemingValue('color', '#' + $(this).val()); }); - + $('.theme-undo').click(function (e) { var setting = $(this).data('setting'); OC.msg.startSaving('#theming_settings_msg'); |