mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-20 07:55:06 +00:00
[invitation] delete: modification (#2379)
This commit is contained in:
parent
4227689c9d
commit
3fa4a88a96
@ -21,9 +21,12 @@ define([
|
|||||||
'click .rm-invitation': 'removeInvitation'
|
'click .rm-invitation': 'removeInvitation'
|
||||||
},
|
},
|
||||||
|
|
||||||
removeInvitation: function() {
|
removeInvitation: function(e) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
|
var $el = $(e.currentTarget);
|
||||||
|
$el.hide(); // hide the icon to avoid being clicked repeatedly
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: Common.getUrl({
|
url: Common.getUrl({
|
||||||
'name': 'invitation',
|
'name': 'invitation',
|
||||||
@ -37,6 +40,7 @@ define([
|
|||||||
Common.feedback(gettext("Successfully deleted 1 item."), 'success');
|
Common.feedback(gettext("Successfully deleted 1 item."), 'success');
|
||||||
},
|
},
|
||||||
error: function(xhr) {
|
error: function(xhr) {
|
||||||
|
$el.show();
|
||||||
Common.ajaxErrorHandler(xhr);
|
Common.ajaxErrorHandler(xhr);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user