mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
[group] remove confirm for 'lib unshare'
This commit is contained in:
@@ -44,12 +44,7 @@ define([
|
||||
},
|
||||
|
||||
unshare: function() {
|
||||
var that = this;
|
||||
var yesCallback = function() {
|
||||
Common.closeModal();
|
||||
Common.feedback(gettext('Loading...'), 'info', Common.INFO_TIMEOUT); // TODO: what if there is still response after 10 secs ?
|
||||
// send delete request and wait response
|
||||
that.model.destroy({
|
||||
this.model.destroy({
|
||||
wait: true,
|
||||
success: function(model, rep) {
|
||||
Common.feedback(gettext('Success'), 'success', Common.SUCCESS_TIMOUT);
|
||||
@@ -58,14 +53,6 @@ define([
|
||||
Common.feedback(gettext('Error'), 'error', Common.ERROR_TIMEOUT);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Common.showConfirm(
|
||||
gettext('Unshare Library'),
|
||||
gettext('Are you sure you want to unshare {placeholder} ?')
|
||||
.replace(/\{placeholder\}/g, '<span class="op-target">' + Common.HTMLescape(this.model.get('name')) + '</span>'),
|
||||
yesCallback
|
||||
);
|
||||
},
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user