add $notifyModal function.

This commit is contained in:
Paulo Gustavo Veiga
2012-11-05 21:55:19 -03:00
parent fe8516bb94
commit 2f8cd121e3
3 changed files with 4 additions and 83 deletions

View File

@@ -21,9 +21,10 @@ mindplot.widget.ModalDialogNotifier = new Class({
initialize:function () {
this.parent({
closeButton:false,
destroyOnClose:true,
destroyOnClose:false,
autoOpen:true,
useEscKey:false,
closeOnOverlayClick:false,
title:"",
onInitialize:function (wrapper) {
wrapper.setStyle('opacity', 0);
@@ -71,7 +72,7 @@ mindplot.widget.ModalDialogNotifier = new Class({
show:function (message, title) {
$assert(message, "message can not be null");
this._messsage = message;
this.options.title.setText($defined(title) ? title : "Outch!!. An unexpected error has occurred");
this.options.title = $defined(title) ? title : "Outch!!. An unexpected error has occurred";
this.open();
},