Skip to content

Commit

Permalink
[skip] Prevented cancelling edit for a view if for whatever reason th…
Browse files Browse the repository at this point in the history
…at view was in edit mode and is being edited again (5m)
  • Loading branch information
boblail committed Feb 8, 2016
1 parent 384a2e6 commit 49f0d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/neat/collection_editor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class window.Neat.CollectionEditor extends Backbone.View


beforeEdit: (view)->
if @viewInEdit
if @viewInEdit and @viewInEdit isnt view
@debug "cancelling edit for ##{$(@viewInEdit.el).attr('id')} (#{@indexOfViewInEdit()})"
@viewInEdit.cancelEdit()
@viewInEdit = view
Expand Down

0 comments on commit 49f0d09

Please sign in to comment.