Removed JS-centering due to CSS-solution
authorLuzifr <szekely@woltlab.com>
Tue, 25 Oct 2011 17:46:31 +0000 (19:46 +0200)
committerLuzifr <szekely@woltlab.com>
Tue, 25 Oct 2011 17:46:31 +0000 (19:46 +0200)
wcfsetup/install/files/js/WCF.js

index 1b127fa86cfdd61a26dbfd789de6b40209ab7483..2a576a5e70223f1e3c292e51e40b21737f4e0dd2 100644 (file)
@@ -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));
        },
        
        /**