Prevent submit from disabling on invalid json (#1790)

This commit is contained in:
Andrew Cantino 2016-11-13 15:21:43 -05:00 committed by GitHub
parent 085473263f
commit 770706463b

View file

@ -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')