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(); }); }); },