فهرست منبع

7.4.3 release

David Benson 7 سال پیش
والد
کامیت
ba68d7c9e3
11فایلهای تغییر یافته به همراه344 افزوده شده و 317 حذف شده
  1. 8 0
      ChangeLog
  2. 1 1
      VERSION
  3. 1 1
      war/cache.manifest
  4. 79 79
      war/js/app.min.js
  5. 71 71
      war/js/atlas-viewer.min.js
  6. 79 79
      war/js/atlas.min.js
  7. 2 2
      war/js/diagramly/App.js
  8. 30 11
      war/js/diagramly/EditorUi.js
  9. 1 1
      war/js/embed-static.min.js
  10. 1 1
      war/js/reader.min.js
  11. 71 71
      war/js/viewer.min.js

+ 8 - 0
ChangeLog

@@ -1,3 +1,11 @@
+19-SEP-2017: 7.4.3
+
+- Improvements for Trello integration
+
+19-SEP-2017: 7.4.2
+
+- Hard codes Dropbox SDK version to work around their bug
+
 18-SEP-2017: 7.4.1
 
 - Hides footer in embed mode

+ 1 - 1
VERSION

@@ -1 +1 @@
-7.4.1
+7.4.3

+ 1 - 1
war/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 09/18/2017 08:45 PM
+# 09/19/2017 01:34 PM
 
 app.html
 index.html?offline=1

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 79 - 79
war/js/app.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 71 - 71
war/js/atlas-viewer.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 79 - 79
war/js/atlas.min.js


+ 2 - 2
war/js/diagramly/App.js

@@ -162,9 +162,9 @@ App.MODE_TRELLO = 'trello';
 App.DROPBOX_APPKEY = 'libwls2fa9szdji';
 
 /**
- * Sets the delay for autosave in milliseconds. Default is 2000.
+ * Sets URL to load the Dropbox SDK from
  */
-App.DROPBOX_URL = 'https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js';
+App.DROPBOX_URL = 'https://unpkg.com/dropbox@2.5.7/dist/Dropbox-sdk.min.js';
 
 /**
  * Sets the delay for autosave in milliseconds. Default is 2000.

+ 30 - 11
war/js/diagramly/EditorUi.js

@@ -2821,18 +2821,26 @@
 	 */
 	EditorUi.prototype.addChromelessToolbarItems = function(addButton)
 	{
-		editoUiAddChromelessToolbarItems.apply(this, arguments);
-		
 		if (this.isExportToCanvas())
 		{
 			this.exportDialog = null;
 			
 			var exportButton = addButton(mxUtils.bind(this, function(evt)
 			{
+				var clickHandler = mxUtils.bind(this, function()
+				{
+					mxEvent.removeListener(this.editor.graph.container, 'click', clickHandler);
+					
+					if (this.exportDialog != null)
+					{
+						this.exportDialog.parentNode.removeChild(this.exportDialog);
+						this.exportDialog = null;
+					}
+				});
+				
 				if (this.exportDialog != null)
 				{
-					this.exportDialog.parentNode.removeChild(this.exportDialog);
-					this.exportDialog = null;
+					clickHandler.apply(this);
 				}
 				else
 				{
@@ -2873,13 +2881,6 @@
 					});
 					spinner.spin(this.exportDialog);
 					
-					var clickHandler = mxUtils.bind(this, function()
-					{
-						mxEvent.removeListener(this.editor.graph.container, 'click', clickHandler);
-						this.exportDialog.parentNode.removeChild(this.exportDialog);
-						this.exportDialog = null;
-					});
-					
 				   	this.exportToCanvas(mxUtils.bind(this, function(canvas)
 				   	{
 				   		spinner.stop();
@@ -2919,6 +2920,8 @@
 				mxEvent.consume(evt);
 			}), Editor.cameraLargeImage, mxResources.get('export'));
 		}
+
+		editoUiAddChromelessToolbarItems.apply(this, arguments);
 	};
 
 
@@ -8523,6 +8526,22 @@
 					
 					return;
 				}
+				else if (data.action == 'loadFile' && this.loadFile)
+				{
+					if (data.type == 'T')
+					{
+						if (this.trello == null)
+						{
+							this.addListener('clientLoaded', function() {
+								this.loadFile(data.file, true);
+							});
+						}
+						else
+						{
+							this.loadFile(data.file, true);
+						}
+					}
+				}
 				else if (data.action == 'load')
 				{
 					autosave = data.autosave == 1;

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
war/js/embed-static.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
war/js/reader.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 71 - 71
war/js/viewer.min.js