1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02: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

@@ -37,13 +37,10 @@ define([
var lib_name = this.model.get('name');
$.ajax({
url: Common.getUrl({
name: 'ajax_unset_inner_pub_repo',
name: 'shared_repos',
repo_id: this.model.get('id')
}),
type: 'POST',
data: {
'permission': this.model.get('permission')
},
}) + "?share_type=public",
type: 'DELETE',
beforeSend: Common.prepareCSRFToken,
dataType: 'json',
success: function () {