width: $dimensions.width
}, options);
},
-
+
/**
* Shows an element by sliding and fading it into viewport.
*
this.options.width = 'auto';
$.ui.dialog.prototype._init.apply(this, arguments);
-
- // center dialog on resize
- $(window).resize($.proxy(function() {
- this.option('position', 'center');
- }, this));
}
});
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));
},
/**