diff --git a/static/js/update-timeout-modal.js b/static/js/update-timeout-modal.js index ee997622..ca00a11e 100644 --- a/static/js/update-timeout-modal.js +++ b/static/js/update-timeout-modal.js @@ -152,7 +152,7 @@ $(function () { } $("#cron-preview" ).html(data); - var haveError = $("#invalid-arguments").size() > 0; + var haveError = $("#invalid-arguments").length > 0; $("#update-cron-submit").prop("disabled", haveError); } });