From b4b9e0d21224f0f86fdb006f8071590352012bac Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 1 Oct 2014 08:35:40 -0400 Subject: [PATCH] Bug 12550 [QA Followup] - Make checking the checkbox load the table of checkouts Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index 910cd1fae6..af11a59ece 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -128,6 +128,11 @@ $(document).ready(function() { $('#issues-table').hide(); $('#issues-table-actions').hide(); + $('#issues-table-load-immediately').change(function(){ + if ( this.checked && typeof issuesTable === 'undefined') { + $('#issues-table-load-now-button').click(); + } + }); $('#issues-table-load-now-button').click(function(){ LoadIssuesTable(); return false; -- 2.39.2