add $notifyModal function.
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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();
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user