From 03d277db80b6cea9a25320c0575ae2bf7a6d7e6e Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Wed, 29 Feb 2012 11:46:44 -0800 Subject: Preview Fix Adding save all logic before preview, temporary fix. --- js/document/html-document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/document/html-document.js b/js/document/html-document.js index 60eecc59..579603e0 100755 --- a/js/document/html-document.js +++ b/js/document/html-document.js @@ -647,7 +647,7 @@ exports.HTMLDocument = Montage.create(TextDocument, { enumerable: false, value: function () { //TODO: Add logic to handle save before preview - this.saveAll(); + this.application.ninja.documentController.handleExecuteSaveAll(null); //Launching 'blank' tab for testing movie window.open(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController._activeDocument.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]); //chrome.tabs.create({url: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController._activeDocument.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]}); -- cgit v1.2.3