summaryrefslogtreecommitdiffstats
path: root/apps/theming/js/settings-admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/js/settings-admin.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);