Revision 7977bbc9 snf-cyclades-app/synnefo/ui/static/snf/js/lib/backbone.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/lib/backbone.js | ||
---|---|---|
307 | 307 |
var model = this; |
308 | 308 |
var success = options.success; |
309 | 309 |
options.success = function(resp) { |
310 |
model.trigger('destroy', model, model.collection, options); |
|
310 |
if (!options.silent) { |
|
311 |
model.trigger('destroy', model, model.collection, options); |
|
312 |
} |
|
311 | 313 |
if (success) success(model, resp); |
312 | 314 |
}; |
313 | 315 |
options.error = wrapError(options.error, model, options); |
Also available in: Unified diff