- $(this).dialog({
- closeOnEscape: true,
- autoOpen: parseInt(this.config.auto_open) ? true : false,
- height: parseInt(this.config.popup_height),
- width: parseInt(this.config.popup_width),
- modal: true,
- resizable: true,
- buttons: {
- Cancel: function() {
- $(this).dialog("close");
- }
- },
- close: function() { }
- });
+ var width = parseInt($(popup).attr("popup_width") || "800");
+ var height = parseInt($(popup).attr("popup_height") || "600");
+ var autoOpen = parseInt($(popup).attr("popup_autoOpen") || "0");