[Libreoffice-commits] online.git: loleaflet/dist

Pranav Kant pranavk at collabora.co.uk
Mon Jun 5 10:12:33 UTC 2017


 loleaflet/dist/toolbar/toolbar.js |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 71387065e843bc33a33ab885d5c160a4b768133b
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Mon Jun 5 15:40:08 2017 +0530

    This should be obsolete after PostMessage API and WOPI
    
    In richdocuments, it was added in aa0a8f666ada8f1d1edae17b906089cc03ba473d
    and then removed in 87f7720d12e130bd1c3cd9306ad1b1f4d784f9e6
    
    It was added firstly way before WOPI was even there. But now since we
    have WOPI, we wouldn't need it.
    
    Change-Id: I786a3f7b2103a43995a70b53438d88a829d13265

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index e1a2d019..d44a5df6 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1425,12 +1425,6 @@ map.on('commandresult', function (e) {
 	if (commandName === '.uno:Save' && e.success === true) {
 		// Saved a new version; the document is modified.
 		map._everModified = true;
-
-		// owncloud integration
-		//FIXME: CSP Violation.
-		//if (typeof window.parent.documentsMain !== 'undefined') {
-			// window.parent.documentsMain.saveDocumentBack();
-		// }
 	}
 	else if ((commandName === '.uno:Undo' || commandName === '.uno:Redo') &&
 		e.success === true && e.result.value && !isNaN(e.result.value)) { /*UNDO_CONFLICT*/


More information about the Libreoffice-commits mailing list