diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 5a26ab57cc..6ae9ab1072 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -139,7 +139,7 @@ $(document).ready(function () { }); // If the holds tab is preselected on load, we need to load the table - if ($("#holds-tab").parent().hasClass("active")) { + if ($("#holds-tab").hasClass("active")) { load_holds_table(); }