Make sure static dialogs are hidden initially
authorMatthias Schmidt <gravatronics@live.com>
Sun, 18 Oct 2015 09:57:21 +0000 (11:57 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 18 Oct 2015 09:57:21 +0000 (11:57 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Ui/Dialog.js

index db2821e5dba48d6ce997c7cf799d6cc806aa88b0..43dd19a2c0f409cf890023f57bee02a71981cc09 100644 (file)
@@ -79,10 +79,10 @@ define(
                                if (id && (container = elById(id))) {
                                        ((function(button, container) {
                                                container.classList.remove('jsStaticDialogContent');
+                                               container.style.setProperty('display', 'none');
                                                button.addEventListener('click', this.openStatic.bind(this, container.id, null, { title: elAttr(container, 'data-title') }));
                                        }).bind(this))(button, container);
                                }
-                               
                        }
                },