Don't open the dialog for logo and background

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-12 09:48:51 +02:00
parent c2350f237e
commit 37d333c3b5
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,8 @@ $(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() {
$('#theming-preview-logo').on('click', function(e) {
e.stopPropagation();
$('#uploadlogo').click();
});
$('#theming-preview').on('click', function() {