Browse Source

10.6.8 release

David Benson 6 years ago
parent
commit
bb811e3862

+ 1 - 1
src/main/webapp/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 05/23/2019 03:58 PM
+# 05/23/2019 11:51 PM
 
 app.html
 index.html?offline=1

BIN
src/main/webapp/images/sidebar-vvd.png


File diff suppressed because it is too large
+ 5 - 5
src/main/webapp/js/app.min.js


+ 62 - 47
src/main/webapp/js/diagramly/ElectronApp.js

@@ -717,41 +717,49 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
 					
 					var writeFile = mxUtils.bind(this, function()
 					{
-						fs.writeFile(this.fileObject.path, data, enc || this.fileObject.encoding,
-							mxUtils.bind(this, function (e)
-					    {
-			        		if (e)
-			        		{
-			        			errorWrapper();
-			        		}
-			        		else
-			        		{
-								fs.stat(this.fileObject.path, mxUtils.bind(this, function(e2, stat2)
-								{
-									if (e2)
-					        		{
-					        			errorWrapper();
-					        		}
-									else
+						if (data == null || data.length == 0)
+						{
+							this.ui.handleError({message: mxResources.get('errorSavingFile')});
+							errorWrapper();
+						}
+						else
+						{
+							fs.writeFile(this.fileObject.path, data, enc || this.fileObject.encoding,
+								mxUtils.bind(this, function (e)
+						    {
+				        		if (e)
+				        		{
+				        			errorWrapper();
+				        		}
+				        		else
+				        		{
+									fs.stat(this.fileObject.path, mxUtils.bind(this, function(e2, stat2)
 									{
-										this.savingFile = false;
-										this.isModified = prevModified;
-										var lastDesc = this.stat;
-										this.stat = stat2;
-										
-										this.fileSaved(savedData, lastDesc, mxUtils.bind(this, function()
+										if (e2)
+						        		{
+						        			errorWrapper();
+						        		}
+										else
 										{
-											this.contentChanged();
+											this.savingFile = false;
+											this.isModified = prevModified;
+											var lastDesc = this.stat;
+											this.stat = stat2;
 											
-											if (success != null)
+											this.fileSaved(savedData, lastDesc, mxUtils.bind(this, function()
 											{
-												success();
-											}
-										}), error);
-									}
-								}));
-			        		}
-			        	}));
+												this.contentChanged();
+												
+												if (success != null)
+												{
+													success();
+												}
+											}), error);
+										}
+									}));
+				        		}
+				        	}));
+						}
 					});
 					
 					if (overwrite)
@@ -1022,23 +1030,30 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
 	
 	        if (path != null)
 	        {
-				var fs = require('fs');
-				resume();
-				
-				var fileObject = new Object();
-				fileObject.path = path;
-				fileObject.name = path.replace(/^.*[\\\/]/, '');
-				fileObject.type = (base64Encoded) ? 'base64' : 'utf-8';
-				
-				fs.writeFile(fileObject.path, data, fileObject.type, mxUtils.bind(this, function (e)
-			    {
-					this.spinner.stop();
+	        	if (data == null || data.length == 0)
+				{
+					this.handleError({message: mxResources.get('errorSavingFile')});
+				}
+				else
+				{
+					var fs = require('fs');
+					resume();
 					
-					if (e)
-					{
-						this.handleError({message: mxResources.get('errorSavingFile')});
-					}
-	        	}));
+					var fileObject = new Object();
+					fileObject.path = path;
+					fileObject.name = path.replace(/^.*[\\\/]/, '');
+					fileObject.type = (base64Encoded) ? 'base64' : 'utf-8';
+					
+					fs.writeFile(fileObject.path, data, fileObject.type, mxUtils.bind(this, function (e)
+				    {
+						this.spinner.stop();
+						
+						if (e)
+						{
+							this.handleError({message: mxResources.get('errorSavingFile')});
+						}
+		        	}));
+				}
 			}
 		}), 0);
 	};

+ 1 - 1
src/main/webapp/js/diagramly/Settings.js

@@ -168,7 +168,7 @@ var mxSettings =
 			search: true,
 			showStartScreen: true,
 			gridColor: mxGraphView.prototype.gridColor,
-			autosave: !EditorUi.isElectronApp,
+			autosave: true,
 			resizeImages: null,
 			openCounter: 0,
 			version: mxSettings.currentVersion,

+ 0 - 1
src/main/webapp/mathjax

@@ -1 +0,0 @@
-Subproject commit c582fd34e17e07b2ffeafef2c867a2cf6c7cdbf2