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

@@ -24,7 +24,6 @@ mindplot.LocalStorageManager = new Class({
saveMapXml:function (mapId, mapXml, pref, saveHistory, events) {
localStorage.setItem(mapId + "-xml", mapXml);
events.onError({message:"It's not possible to save your changes because your mindmap has been modified by '%s'. Refresh the page and try again.", severity:"FATAL"});
},
discardChanges:function (mapId) {

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();
},