1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +00:00

show/delete public lib

This commit is contained in:
lian
2015-03-07 15:56:10 +08:00
committed by Daniel Pan
parent c42822969d
commit 0a32d98f20
10 changed files with 248 additions and 59 deletions

View File

@@ -23,7 +23,7 @@ define([
removeShare: function(e) {
var _this = this,
after_leave_success = function(data) {
success_callback = function(data) {
Common.feedback(gettext('Success'), 'success', Common.SUCCESS_TIMOUT);
_this.$el.remove();
_this.collection.remove(_this.model, {silent: true});
@@ -40,7 +40,7 @@ define([
'from': this.model.get('owner'),
'share_type': this.model.get('share_type')
},
'after_op_success': after_leave_success
'after_op_success': success_callback
});
},