diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-02 15:47:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 15:47:44 +0300 |
commit | bab5180807840b1a89eb82692b09fd9c5e5c4312 (patch) | |
tree | 211167a6ae31c64f69f217ac648bdc83a3a29323 /js/documents.js | |
parent | bb1e87dc8fd2b85d187514e27e2da60bc1c08b3b (diff) | |
parent | ce2ec99d890f1b24b468abbe7ff76fe14d9c567a (diff) |
Nextcloud version bump and code cleanup (#470)
Nextcloud version bump and code cleanup
Diffstat (limited to 'js/documents.js')
-rw-r--r-- | js/documents.js | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/js/documents.js b/js/documents.js index 3311baa7..310d044d 100644 --- a/js/documents.js +++ b/js/documents.js @@ -514,12 +514,7 @@ var documentsMain = { documentsMain.$deferredVersionRestoreAck = $.Deferred(); jQuery.when(documentsMain.$deferredVersionRestoreAck).done(function(args) { - var nextcloudVersion = parseInt(parent.oc_config.version.split('.')[0]); - if (nextcloudVersion < 15) { - self._restoreAjax(version); - } else { - self._restoreDAV(version) - } + self._restoreDAV(version) }); // resolve the deferred object immediately if client doesn't support version states @@ -559,19 +554,6 @@ var documentsMain = { }); }, - _restoreAjax: function(version) { - var restoreUrl = OC.generateUrl('apps/files_versions/ajax/rollbackVersion.php?file={file}&revision={revision}', - { - file: documentsMain.fullPath, revision: version - }); - $.ajax({ - type: 'GET', - url: restoreUrl, - success: this._restoreSuccess, - error: this._restoreError - }); - }, - showEditor : function(title, fileId, action){ if (documentsMain.loadError) { documentsMain.onEditorShutdown(documentsMain.loadErrorMessage + '\n' + documentsMain.loadErrorHint); |