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

[share.js] modified 'delete link'

This commit is contained in:
llj
2015-10-21 15:34:09 +08:00
parent df1ff9e0f6
commit 0e6de3b4e9

View File

@@ -385,14 +385,16 @@ define([
deleteDownloadLink: function() { deleteDownloadLink: function() {
var _this = this; var _this = this;
var after_op_success = function(data) { $.ajax({
_this.$('#generate-download-link-form').removeClass('hide'), url: Common.getUrl({name: 'delete_shared_download_link'}),
_this.$('#download-link-operations').addClass('hide'); type: 'POST',
}; data: { 't': this.download_link_token },
Common.ajaxGet({ beforeSend: Common.prepareCSRFToken,
'get_url': Common.getUrl({name: 'delete_shared_download_link'}), dataType: 'json',
'data': { 't': _this.download_link_token }, success: function(data) {
'after_op_success': after_op_success _this.$('#generate-download-link-form').removeClass('hide');
_this.$('#download-link-operations').addClass('hide');
}
}); });
}, },
@@ -457,14 +459,16 @@ define([
deleteUploadLink: function() { deleteUploadLink: function() {
var _this = this; var _this = this;
var after_op_success = function(data) { $.ajax({
_this.$('#generate-upload-link-form').removeClass('hide'), url: Common.getUrl({name: 'delete_shared_upload_link'}),
_this.$('#upload-link-operations').addClass('hide'); type: 'POST',
}; data: { 't': this.upload_link_token },
Common.ajaxGet({ beforeSend: Common.prepareCSRFToken,
'get_url': Common.getUrl({name: 'delete_shared_upload_link'}), dataType: 'json',
'data': { 't': _this.upload_link_token }, success: function(data) {
'after_op_success': after_op_success _this.$('#generate-upload-link-form').removeClass('hide');
_this.$('#upload-link-operations').addClass('hide');
}
}); });
}, },