Merge pull request #72 from pranavk/returntodir
bccu#1882: Return to where user started by removing redundant call
This commit is contained in:
commit
5a0dc1ea81
@ -574,31 +574,6 @@ var documentsMain = {
|
|||||||
documentsMain.UI.showEditor(documentsMain.fileName);
|
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) {
|
renameDocument: function(name) {
|
||||||
var url = OC.generateUrl('apps/richdocuments/ajax/documents/rename/{file_id}', {file_id: documentsMain.fileId});
|
var url = OC.generateUrl('apps/richdocuments/ajax/documents/rename/{file_id}', {file_id: documentsMain.fileId});
|
||||||
$.post(
|
$.post(
|
||||||
@ -648,7 +623,6 @@ var documentsMain = {
|
|||||||
|
|
||||||
$('footer,nav').show();
|
$('footer,nav').show();
|
||||||
documentsMain.UI.hideEditor();
|
documentsMain.UI.hideEditor();
|
||||||
documentsMain.closeDocument();
|
|
||||||
$('#ocToolbar').remove();
|
$('#ocToolbar').remove();
|
||||||
|
|
||||||
if (documentsMain.returnToDir) {
|
if (documentsMain.returnToDir) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user