From: Luzifr Date: Tue, 25 Oct 2011 17:46:31 +0000 (+0200) Subject: Removed JS-centering due to CSS-solution X-Git-Tag: 2.0.0_Beta_1~1655 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=34ac32a6250cad8eec71f3463898d363d6f74d59;p=GitHub%2FWoltLab%2FWCF.git Removed JS-centering due to CSS-solution --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 1b127fa86c..2a576a5e70 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -282,7 +282,7 @@ $.fn.extend({ width: $dimensions.width }, options); }, - + /** * Shows an element by sliding and fading it into viewport. * @@ -2783,11 +2783,6 @@ $.widget('ui.wcfDialog', $.ui.dialog, { this.options.width = 'auto'; $.ui.dialog.prototype._init.apply(this, arguments); - - // center dialog on resize - $(window).resize($.proxy(function() { - this.option('position', 'center'); - }, this)); } }); @@ -2857,11 +2852,6 @@ $.widget('ui.wcfAJAXDialog', $.ui.dialog, { this.element.parent('.ui-dialog').find('a.ui-dialog-titlebar-close').empty().remove(); } } - - // center dialog on window resize - $(window).resize($.proxy(function() { - this.option('position', 'center'); - }, this)); }, /**