summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-11 19:49:32 -0500
committerMorris Jobke <hey@morrisjobke.de>2017-05-11 19:49:36 -0500
commitc2350f237ecf35e716c827ae92066059ecc43f2e (patch)
tree8792b4ea60ba440402412a46fa983f66462bb5fc /apps/theming
parentd83f1d96d4541e8e5a686be94b9c03ebb31f5f76 (diff)
downloadnextcloud-server-c2350f237ecf35e716c827ae92066059ecc43f2e.tar.gz
nextcloud-server-c2350f237ecf35e716c827ae92066059ecc43f2e.zip
Clicking on theming preview triggers fileupload dialog
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/css/settings-admin.css5
-rw-r--r--apps/theming/js/settings-admin.js7
2 files changed, 12 insertions, 0 deletions
diff --git a/apps/theming/css/settings-admin.css b/apps/theming/css/settings-admin.css
index e401d77e4b6..ef3c9f68b27 100644
--- a/apps/theming/css/settings-admin.css
+++ b/apps/theming/css/settings-admin.css
@@ -89,6 +89,10 @@ div#theming_settings_msg {
display: inline-block;
}
+#theming-preview-logo {
+ cursor: pointer;
+}
+
#theming-preview {
width: 230px;
height: 140px;
@@ -97,6 +101,7 @@ div#theming_settings_msg {
text-align: center;
margin-left: 123px;
margin-top: 10px;
+ cursor: pointer;
}
#theming-preview img {
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js
index 5d91892c007..d4ecba5a141 100644
--- a/apps/theming/js/settings-admin.js
+++ b/apps/theming/js/settings-admin.js
@@ -160,6 +160,13 @@ $(document).ready(function () {
$('#uploadlogo').fileupload(uploadParamsLogo);
$('#upload-login-background').fileupload(uploadParamsLogin);
+ // clicking preview should also trigger file upload dialog
+ $('#theming-preview-logo').on('click', function() {
+ $('#uploadlogo').click();
+ });
+ $('#theming-preview').on('click', function() {
+ $('#upload-login-background').click();
+ });
$('#theming-name').change(function(e) {
var el = $(this);