diff --git a/templates/msgs/broadcast_create_target.html b/templates/msgs/broadcast_create_target.html index 0319eeb436e..d9fa3cd01af 100644 --- a/templates/msgs/broadcast_create_target.html +++ b/templates/msgs/broadcast_create_target.html @@ -2,28 +2,28 @@ {% load smartmin i18n %} {% block extra-style %} - {{ block.super }} - + {{ block.super }} + {% endblock extra-style %} {% block extra-script %} - {{ block.super }} - + queryWidget.addEventListener("temba-content-changed", function(e) { + if (e.detail.reset || (e.detail.blockers && e.detail.blockers.length > 0)) { + modax.disabled = true; + } else if (e.detail.query) { + modax.disabled = false; + } + }); + } + {% endblock extra-script %}