From cee023063b8e7bf0f700fdeb4ff4a6d2f4633672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 14 Oct 2021 15:22:47 +0300 Subject: [PATCH] Fix JS regression in cron preview --- static/js/update-timeout-modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } });