|
|
@ -144,7 +144,12 @@ var documentsMain = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onClose: function() {
|
|
|
|
onClose: function() {
|
|
|
|
"use strict";
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!documentsMain.isEditorMode){
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
documentsMain.isEditorMode = false;
|
|
|
|
|
|
|
|
|
|
|
|
//close editor
|
|
|
|
//close editor
|
|
|
|
documentsMain.webodfEditorInstance.endEditing();
|
|
|
|
documentsMain.webodfEditorInstance.endEditing();
|
|
|
|
documentsMain.webodfEditorInstance.close(function() {
|
|
|
|
documentsMain.webodfEditorInstance.close(function() {
|
|
|
@ -163,7 +168,6 @@ var documentsMain = {
|
|
|
|
$('#content').fadeIn('slow');
|
|
|
|
$('#content').fadeIn('slow');
|
|
|
|
$(document.body).removeClass('claro');
|
|
|
|
$(document.body).removeClass('claro');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
documentsMain.isEditorMode = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
});
|
|
|
|