mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 18:30:53 +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:
@@ -61,11 +61,11 @@ define([
|
||||
var popupContent = gettext("Are you sure you want to delete %s ?").replace('%s', '<span class="op-target ellipsis ellipsis-op-target">' + Common.HTMLescape(repo_name) + '</span>');
|
||||
var yesCallback = function() {
|
||||
$.ajax({
|
||||
url: Common.getUrl({'name':'repo_del', 'repo_id': _this.model.get('id')}),
|
||||
type: 'POST',
|
||||
url: Common.getUrl({'name':'repo', 'repo_id': _this.model.get('id')}),
|
||||
type: 'DELETE',
|
||||
cache: false,
|
||||
beforeSend: Common.prepareCSRFToken,
|
||||
dataType: 'json',
|
||||
beforeSend: Common.prepareCSRFToken,
|
||||
success: function() {
|
||||
_this.$el.remove();
|
||||
Common.feedback(gettext("Successfully deleted."), 'success');
|
||||
|
Reference in New Issue
Block a user