@@ -, +, @@ - Check any checkbox. The "Mark seen" and "Mark not seen" should go from disabled to enabled. - Test that the buttons work correctly. - Click the "Select all" and "Clear all" controls and confirm that the buttons are enabled and disabled correctly. --- .../intranet-tmpl/prog/en/modules/circ/checkout-notes.tt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt @@ -50,8 +50,8 @@ [% IF ( notes.count ) %]
- - + +
@@ -140,12 +140,12 @@ $(".SelectAll").on("click", function(){ $("input[name='issue_ids'][type='checkbox']").prop("checked", true); - $(".btn-sm").prop("disabled", false); + $(".markseen").prop("disabled", false); }); $(".ClearAll").on("click", function(){ $("input[name='issue_ids'][type='checkbox']").prop("checked", false); - $(".btn-sm").prop("disabled", true); + $(".markseen").prop("disabled", true); }); $(".HideSeen").on("click", function(){ @@ -158,11 +158,11 @@ $("#error").hide(); - $("input[type='checkbox']").click(function(event){ + $("#notestable").on("change", "input[type='checkbox']", function(){ if ( $("input[type='checkbox']").is(":checked") ) { - $(".btn-sm").prop("disabled", false); + $(".markseen").prop("disabled", false); } else { - $(".btn-sm").prop("disabled", true); + $(".markseen").prop("disabled", true); } }); --