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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user