]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make the confirm dialog modal by default
authorJoas Schilling <coding@schilljs.com>
Mon, 15 Jun 2020 14:43:18 +0000 (16:43 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 15 Jun 2020 14:56:13 +0000 (16:56 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/src/OC/dialogs.js

index 380aeb3a76b982a91bc45b8ca15906ef70af39da..2c8ecc54e322db54feff7372ec4aba953eb4f8a2 100644 (file)
@@ -107,7 +107,7 @@ const Dialogs = {
                        'none',
                        buttons,
                        callback,
-                       modal
+                       modal === undefined ? true : modal
                )
        },
        /**
@@ -1245,7 +1245,7 @@ const Dialogs = {
                        dir: '',
                        name: '' // Ugly but works ;)
                }, { escapeFunction: null }).prependTo(this.$dirTree)
-               
+
        },
        /**
         * handle selection made in the tree list