}
this.createButtons(options.buttons);
- this.isOpen = false;
+ this._isOpen = false;
(options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe());
(options.autoOpen && this.open());
},
open: function() {
- if (this.isOpen) { return; }
+ if (this._isOpen) { return; }
this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
(this.uiDialog.next().length && this.uiDialog.appendTo('body'));
this.moveToTop(true);
this.trigger('open', null, { options: this.options });
- this.isOpen = true;
+ this._isOpen = true;
},
// the force parameter allows us to move modal dialogs to their correct
this.trigger('close', null, { options: this.options });
$.ui.dialog.overlay.resize();
- this.isOpen = false;
+ this._isOpen = false;
},
destroy: function() {
.appendTo(uiDialogButtonPane);
});
}
+ },
+
+ isOpen: function() {
+ return this._isOpen;
}
});
zIndex: 1000
},
+ getter: 'isOpen',
+
overlay: function(dialog) {
this.$el = $.ui.dialog.overlay.create(dialog);
}