From 34ac32a6250cad8eec71f3463898d363d6f74d59 Mon Sep 17 00:00:00 2001 From: Luzifr Date: Tue, 25 Oct 2011 19:46:31 +0200 Subject: [PATCH] Removed JS-centering due to CSS-solution --- wcfsetup/install/files/js/WCF.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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)); }, /** -- 2.20.1