Skip to content

Commit

Permalink
Prevent submit from disabling on invalid json
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Nov 13, 2016
1 parent b6c1e90 commit 3fc9c79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/pages/agent-edit-page.js.coffee
Expand Up @@ -12,6 +12,7 @@ class @AgentEditPage
catch err
e.preventDefault()
alert 'Sorry, there appears to be an error in your JSON input. Please fix it before continuing.'
return false

if $(".link-region").length && $(".link-region").data("can-receive-events") == false
$(".link-region .select2-linked-tags option:selected").removeAttr('selected')
Expand Down

0 comments on commit 3fc9c79

Please sign in to comment.