From 1a5d30b5d63cccbf77e8da7072595eafd6db1569 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Thu, 29 Oct 2015 20:36:31 -0400 Subject: [PATCH] cloudsuite: use onClose insted hideEditor --- js/documents.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/documents.js b/js/documents.js index 1fd3a72f..7f1dda53 100644 --- a/js/documents.js +++ b/js/documents.js @@ -171,7 +171,6 @@ var documentsMain = { }, showEditor : function(title){ - var self = this; if (documentsMain.isGuest){ // !Login page mess wih WebODF toolbars $(document.body).attr('id', 'body-user'); @@ -194,7 +193,7 @@ var documentsMain = { $('#loleafletframe').load(function(){ var iframe = $('#loleafletframe').contents(); iframe.find('#tb_toolbar-up_item_close').click(function() { - self.hideEditor(); + documentsMain.onClose(); }); }); },