1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

Draft review (#2416)

This commit is contained in:
C_Q
2018-10-15 15:51:29 +08:00
committed by Daniel Pan
parent 70aa4a0257
commit 2eef50d05e
46 changed files with 1261 additions and 441 deletions

View File

@@ -623,9 +623,10 @@ define([
beforeSend: Common.prepareCSRFToken,
success: function(res) {
var siteRoot = window.app.config.siteRoot;
var repoID = res.draft_repo_id;
var repoID = res.origin_repo_id;
var filePath = res.draft_file_path;
window.location.href= siteRoot + 'lib/' + repoID + '/file' + filePath + '?mode=edit';
var draftID = res.id;
window.location.href= siteRoot + 'lib/' + repoID + '/file' + filePath + '?mode=edit&draft_id=' + draftID;
},
error: function() {
var err_msg = gettext("The draft already exists.");