]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't open the dialog for logo and background 4829/head
authorJoas Schilling <coding@schilljs.com>
Fri, 12 May 2017 07:48:51 +0000 (09:48 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 12 May 2017 07:48:51 +0000 (09:48 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/theming/js/settings-admin.js

index d4ecba5a1412264e58448637c214c72dab8e78a9..48c479cc9c3fc962f027ca5e1812111fc6f64711 100644 (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() {