bccu#1882: Return to where user started by removing redundant call
Route /close/ doesn't mean anything, and we were making this additional call always before closing the document. This had a side-effect that sometimes /close/ call would be processed after we assign returnToDir to window.location making browser always stuck in richdocuments#index rather than reeturnToDir. This was mainly the problem in firefox with owncloud9
This commit is contained in:
parent
875ca1a766
commit
8e56d58ff7
@ -591,14 +591,6 @@ var documentsMain = {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
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 +640,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