Skip to content

Commit

Permalink
stop propagation on remove element from multiple files interface
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Apr 24, 2017
1 parent e575809 commit 95b8de5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/core/interfaces/multiple_files.js
Expand Up @@ -57,11 +57,13 @@ define([
}
},

removeItem: function(e) {
var cid = $(e.target).closest('.js-file').data('cid');
removeItem: function (event) {
var cid = $(event.target).closest('.js-file').data('cid');
var model = this.relatedCollection.get(cid);
var name = {};

event.stopPropagation();

if (model.isNew()) {
this.relatedCollection.remove(model);
} else {
Expand Down

0 comments on commit 95b8de5

Please sign in to comment.