1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

add new api & update code

1. add new repo set password api
2. update repo url related code
This commit is contained in:
lian
2016-03-21 15:38:22 +08:00
parent 0d57b3f060
commit 69cbd56064
14 changed files with 144 additions and 123 deletions

View File

@@ -299,11 +299,9 @@ define([
Common.ajaxPost({
form: form,
form_id: form.attr('id'),
post_url: Common.getUrl({'name':'repo_set_password'}),
post_url: Common.getUrl({'name':'api_v2.1_repo_set_password', repo_id: _this.dir.repo_id}),
post_data: {
repo_id: _this.dir.repo_id,
password: passwd,
username: app.pageOptions.username
password: passwd
},
after_op_success: function() {
decrypt_success = true;