}
this.createButtons(options.buttons);
+ this.isOpen = false;
(options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe());
(options.autoOpen && this.open());
},
open: function() {
+ if (this.isOpen) { return; }
+
this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
this.uiDialog.appendTo('body');
this.position(this.options.position);
};
this.uiDialogTitlebarClose.focus();
this.element.triggerHandler("dialogopen", [openEV, openUI], this.options.open);
+
+ this.isOpen = true;
},
// the force parameter allows us to move modal dialogs to their correct
};
this.element.triggerHandler("dialogclose", [closeEV, closeUI], this.options.close);
$.ui.dialog.overlay.resize();
+
+ this.isOpen = false;
},
destroy: function() {