Allowing "autoOpen: false" on modal dialogs
authorMagnus Kühn <magnus.khn@gmail.com>
Sun, 16 Jun 2013 10:36:27 +0000 (12:36 +0200)
committerMagnus Kühn <magnus.khn@gmail.com>
Sun, 16 Jun 2013 10:36:27 +0000 (12:36 +0200)
wcfsetup/install/files/js/WCF.js

index db67d0310b86ff5b195805f8af3e8a0764248132..5e79c83d6d49eb6cf62bc5bd6324a1f7453bb352 100755 (executable)
@@ -8308,7 +8308,7 @@ $.widget('ui.wcfDialog', {
                if (this.options.modal) {
                        this._overlay = $('#jsWcfDialogOverlay');
                        if (!this._overlay.length) {
-                               this._overlay = $('<div id="jsWcfDialogOverlay" class="dialogOverlay" />').css({ height: '100%', zIndex: 399 }).appendTo(document.body);
+                               this._overlay = $('<div id="jsWcfDialogOverlay" class="dialogOverlay" />').css({ height: '100%', zIndex: 399 }).hide().appendTo(document.body);
                        }
                        
                        if (this.options.closable) {