summaryrefslogtreecommitdiffstats
path: root/apps/theming/js
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/js
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/js')
-rw-r--r--apps/theming/js/settings-admin.js7
1 files changed, 7 insertions, 0 deletions
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);