diff --git a/Disco.Web/Views/Job/LogWarranty.cshtml b/Disco.Web/Views/Job/LogWarranty.cshtml index ece03453..12e02bcc 100644 --- a/Disco.Web/Views/Job/LogWarranty.cshtml +++ b/Disco.Web/Views/Job/LogWarranty.cshtml @@ -191,5 +191,14 @@ } else { $('#FaultDescription').focus(); } + + $('#publishJobAttachments').on('click', 'input', function (e) { + e.preventDefault(); + setTimeout(function () { + var $i = $(e.currentTarget); + $i.prop('checked', !$i.prop('checked')); + }, 0); + return false; + }); }); diff --git a/Disco.Web/Views/Job/LogWarranty.generated.cs b/Disco.Web/Views/Job/LogWarranty.generated.cs index c9604edb..252ee102 100644 --- a/Disco.Web/Views/Job/LogWarranty.generated.cs +++ b/Disco.Web/Views/Job/LogWarranty.generated.cs @@ -865,7 +865,11 @@ WriteLiteral(">\r\n $(function () {\r\n var $providerId = $(\'#Warrant "dressId.change(updateDetails);\r\n\r\n var manualProvider = $(\'#ManualProvide" + "rName\');\r\n if (manualProvider.length > 0 && !manualProvider.val()) {\r\n " + " manualProvider.focus();\r\n } else {\r\n $(\'#FaultDescrip" + -"tion\').focus();\r\n }\r\n });\r\n\r\n"); +"tion\').focus();\r\n }\r\n\r\n $(\'#publishJobAttachments\').on(\'click\', \'i" + +"nput\', function (e) {\r\n e.preventDefault();\r\n setTimeout(f" + +"unction () {\r\n var $i = $(e.currentTarget);\r\n $i.p" + +"rop(\'checked\', !$i.prop(\'checked\'));\r\n }, 0);\r\n return fal" + +"se;\r\n });\r\n });\r\n\r\n"); } }