瀏覽代碼

7.2.2 release

Gaudenz Alder 8 年之前
父節點
當前提交
e3f0581088
共有 9 個文件被更改,包括 42 次插入28 次删除
  1. 4 0
      ChangeLog
  2. 1 1
      VERSION
  3. 1 1
      war/cache.manifest
  4. 5 5
      war/js/app.min.js
  5. 4 4
      war/js/atlas.min.js
  6. 21 12
      war/js/diagramly/App.js
  7. 4 3
      war/js/diagramly/TrelloFile.js
  8. 1 1
      war/js/embed-static.min.js
  9. 1 1
      war/js/reader.min.js

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+24-AUG-2017: 7.2.2
+
+- Adds autosave for Trello files
+
 23-AUG-2017: 7.2.1
 
 - Adds support for Trello attachments

+ 1 - 1
VERSION

@@ -1 +1 @@
-7.2.1
+7.2.2

+ 1 - 1
war/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 08/23/2017 04:35 PM
+# 08/24/2017 06:10 AM
 
 app.html
 index.html?offline=1

文件差異過大導致無法顯示
+ 5 - 5
war/js/app.min.js


文件差異過大導致無法顯示
+ 4 - 4
war/js/atlas.min.js


+ 21 - 12
war/js/diagramly/App.js

@@ -1166,11 +1166,24 @@ App.prototype.init = function()
 	
 	if (td != null && mxClient.IS_SVG)
 	{
-		td.innerHTML = '<a title="Collaborate on diagrams in Samepage" target="_blank" ' +
-			((mxClient.IS_SF) ? 'style="margin-top:-22px;" ' : '') +
-			'href="https://www.samepage.io/draw-diagram-online?SPcid=SIOF%2BDraw%2Breferral%2BDraw%2Bv1%2BNA"\>' +
+//		td.innerHTML = '<a title="Collaborate on diagrams in Samepage" target="_blank" ' +
+//			((mxClient.IS_SF) ? 'style="margin-top:-22px;" ' : '') +
+//			'href="https://www.samepage.io/draw-diagram-online?SPcid=SIOF%2BDraw%2Breferral%2BDraw%2Bv1%2BNA"\>' +
+//			'<img border="0" align="absmiddle" width="24" height="24" style="margin-top:-2px;padding-right:8px;" ' +
+//			'src="' + IMAGE_PATH + '/samepage-icon-color.svg"/>Collaborate on diagrams in Samepage</a>';
+		td.innerHTML = '<a title="Trello integration" target="_blank" ' +
+			'href="https://www.facebook.com/drawioapp/posts/1635338883157308"\>' +
 			'<img border="0" align="absmiddle" width="24" height="24" style="margin-top:-2px;padding-right:8px;" ' +
-			'src="' + IMAGE_PATH + '/samepage-icon-color.svg"/>Collaborate on diagrams in Samepage</a>';
+			'src="' + IMAGE_PATH + '/trello-logo.svg"/>NEW! Trello integration</a>';
+		
+		mxEvent.addListener(td, 'click', mxUtils.bind(this, function()
+		{
+			if (typeof window.ga === 'function' && !this.isOffline())
+			{
+				ga('send', 'event', 'Footer', 'click', 'Trello');
+			}
+		}));
+
 //		this.basicAds.push(td.innerHTML);
 //		this.adsHtml = this.basicAds;
 //		var lastAd = this.adsHtml.length - 1;
@@ -1235,17 +1248,13 @@ App.prototype.init = function()
 //				}
 //			}
 //		};
-		
-		mxEvent.addListener(td, 'click', mxUtils.bind(this, function()
-		{
+//		
+//		mxEvent.addListener(td, 'click', mxUtils.bind(this, function()
+//		{
 //			this.adsHtml.splice(lastAd, 1);
 //			lastAd = null;
 //			this.updateAd(0);
-			if (typeof window.ga === 'function' && !this.isOffline())
-			{
-				ga('send', 'event', 'Footer', 'click', 'Samepage');
-			}
-		}));
+//		}));
 //
 //		if (mxSettings.getOpenCounter() > 10 && urlParams['embed'] != '1')
 //		{

+ 4 - 3
war/js/diagramly/TrelloFile.js

@@ -28,12 +28,13 @@ TrelloFile.prototype.getMode = function()
 	return App.MODE_TRELLO;
 };
 
+
 /**
- * Overridden to disable the autosave
+ * Overridden to enable the autosave option in the document properties dialog.
  */
-TrelloFile.prototype.isAutosave = function()
+TrelloFile.prototype.isAutosaveOptional = function()
 {
-	return false;
+	return true;
 };
 
 /**

文件差異過大導致無法顯示
+ 1 - 1
war/js/embed-static.min.js


文件差異過大導致無法顯示
+ 1 - 1
war/js/reader.min.js