support Firefox checkbox inside anchor element when logging warranty

This commit is contained in:
Gary Sharp
2023-11-09 14:05:48 +11:00
parent 028d1ccc64
commit f901d45d78
2 changed files with 14 additions and 1 deletions
+9
View File
@@ -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;
});
});
</script>