Bug 24337: Checkout note cannot be marked seen if more than 20 exist
This patch modifies the event handler on the individual "Mark seen" / "Mark unseen" buttons in the table of checkout notes. For an event to be successfully attached to a hidden element it must be given a context. To test you should have multiple checkout notes to work with, both seen and unseen. Apply the patch and go to "Checkout notes pending" from the staff client home page. - Navigate to the second "page" of data in the DataTable. - Test the functionality of the "Mark seen" and "Mark unseen" buttons. They should work correctly. Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
f78eaf0461
commit
1c38ddf410
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("button.seen, button.notseen").click(function(event){
|
$("#notestable").on("click", "button.seen, button.notseen", function(event){
|
||||||
event.preventDefault(); // prevent form submission
|
event.preventDefault(); // prevent form submission
|
||||||
var $action = $(this).attr("name");
|
var $action = $(this).attr("name");
|
||||||
var $issue_id = $(this).data('issue_id');
|
var $issue_id = $(this).data('issue_id');
|
||||||
|
|
Loading…
Reference in a new issue