1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

Code clean (#1217)

* Use API to create file/folder instead of Ajax
* Remove sub_repo AJAX api
* Remove repo delete AJAX function
* Remove get_group_basic_info
* Add comment for get_unenc_group_repos
* Remove ajax_repo_change_basic_info and ajax_repo_transfer_owner
* Remove ajax_unset_inner_pub_repe and RepoPublic
* Remove ajax star/unstar a file
* update be shared repo api
* update test public repo
* Remove ajax_repo_remove_share
This commit is contained in:
Daniel Pan
2016-06-20 18:34:30 +08:00
committed by GitHub
parent fd742d6b02
commit cf1017513a
16 changed files with 119 additions and 705 deletions

View File

@@ -33,14 +33,10 @@ define([
};
$.ajax({
url: Common.getUrl({name: 'ajax_repo_remove_share'}),
type: 'POST',
url: Common.getUrl({name: 'beshared_repo', repo_id: this.model.get('id')})
+ "?share_type=personal&from=" + encodeURIComponent(this.model.get('owner')),
type: 'DELETE',
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
});