Browse Source

Add old null checks and update version in constants.

Bentley James Oakes 7 years ago
parent
commit
a2707d1896
2 changed files with 3 additions and 3 deletions
  1. 2 2
      client/client.js
  2. 1 1
      client/constants.js

+ 2 - 2
client/client.js

@@ -280,7 +280,7 @@ function _loadModel(fname)
 		else
 			__saveas = fname;
 		DataUtils.loadm(fname);
-		if (__msg != '')
+		if (__msg != '' && __msg != null)
 			WindowManagement.openDialog(_CUSTOM,{'widgets':[{'id':'1','type':'text','label':'text message','default':''}],"title":__msg});
 	}
 }
@@ -295,7 +295,7 @@ function _loadToolbar(fname)
 		DataUtils.loadbm(fname);
 	else if( __isIconMetamodel(fname) )
 		DataUtils.loadmm(fname);
-	if (__msg != '')
+	if (__msg != '' && __msg != null)
 		WindowManagement.openDialog(_CUSTOM,{'widgets':[{'id':'1','type':'text','label':'text message','default':''}],"title":__msg});
 }
 

+ 1 - 1
client/constants.js

@@ -20,7 +20,7 @@ with AToMPM.  If not, see <http://www.gnu.org/licenses/>.
 
 /****************************** GLOBAL CONSTANTS ******************************/
 var __WEBPAGE__ = 'http://www-ens.iro.umontreal.ca/~syriani/atompm/atompm.htm',
-    __VERSION__ = '0.5.4',
+    __VERSION__ = '0.7.0',
     __DEFAULT_SAVEAS		 	= '.autosave.model',
 	 __TITLE						= 'AToMPM',
 	 __EXITWARNING				= 'There are unsaved changes. Proceeding will cause'+