From c2533f13c281b85fd2205240745c285f827d433f Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 5 Sep 2018 15:31:31 +0200 Subject: [PATCH] Fixed label in edit and create --- js/site.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/site.js b/js/site.js index 1478c0c..6d3a9cb 100644 --- a/js/site.js +++ b/js/site.js @@ -46,9 +46,9 @@ $(document).ready(function() { $('#resultmodal').modal('show'); }); }); - $("body").on("change", "input[name=url]", function() { + $("body").on("focusout", "input[name=url]", function() { if($("input[name=url]").val() == "reboot") { - $(".label[for=expected]").html("Capture services after reboot? (1: yes; 0: no)"); + $("label[for=expected]").html("Capture services after reboot? (1: yes; 0: no)"); $("input[name=expected]").attr("placeholder", "1"); } })