1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

use 'POST' instead of 'GET' for some requests, and modified 'share' in repo, file view

This commit is contained in:
llj
2015-10-19 15:04:37 +08:00
parent 54f76e77e5
commit 0dc31715d4
16 changed files with 108 additions and 166 deletions

View File

@@ -32,14 +32,17 @@ define([
};
};
Common.ajaxGet({
'get_url': Common.getUrl({name: 'ajax_repo_remove_share'}),
'data': {
'repo_id': this.model.get('id'),
'from': this.model.get('owner'),
'share_type': this.model.get('share_type')
},
'after_op_success': success_callback
$.ajax({
url: Common.getUrl({name: 'ajax_repo_remove_share'}),
type: 'POST',
beforeSend: Common.prepareCSRFToken,
data: {
'repo_id': this.model.get('id'),
'from': this.model.get('owner'),
'share_type': this.model.get('share_type')
},
dataType: 'json',
success: success_callback
});
},