Merge pull request #72 from pranavk/returntodir

bccu#1882: Return to where user started by removing redundant call
pull/1/head
Andras Timar 8 years ago committed by GitHub
commit 5a0dc1ea81

@ -574,31 +574,6 @@ var documentsMain = {
documentsMain.UI.showEditor(documentsMain.fileName);
},
saveDocumentBack: function() {
var url = OC.generateUrl('apps/richdocuments/save/{file_id}', {file_id: documentsMain.fileId});
$.post(
url,
{ basename : documentsMain.baseName },
function(result) {
if (result && result.status === 'error') {
if (result.message){
documentsMain.IU.notify(result.message);
}
documentsMain.onEditorShutdown(t('richdocuments', 'Failed to save this document. Please check if it can be saved with an external editor. This might also mean it has been unshared or deleted recently.'));
return;
}
}
);
},
closeDocument: function() {
var url = OC.generateUrl('apps/richdocuments/close/{file_id}', {file_id: documentsMain.fileId});
$.post(
url,
{ basename : documentsMain.baseName }
);
},
renameDocument: function(name) {
var url = OC.generateUrl('apps/richdocuments/ajax/documents/rename/{file_id}', {file_id: documentsMain.fileId});
$.post(
@ -648,7 +623,6 @@ var documentsMain = {
$('footer,nav').show();
documentsMain.UI.hideEditor();
documentsMain.closeDocument();
$('#ocToolbar').remove();
if (documentsMain.returnToDir) {

Loading…
Cancel
Save