mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Prevent submit from disabling on invalid json (#1790)
This commit is contained in:
parent
085473263f
commit
770706463b
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue