@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 27 ++++++++++------------ koha-tmpl/intranet-tmpl/prog/en/js/holds.js | 10 +++++--- 2 files changed, 18 insertions(+), 19 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -313,10 +313,12 @@ $(document).ready(function() { } ); - $("#issues-table_processing").position({ - of: $( "#issues-table" ), - collision: "none" - }); + if ( $("#issues-table").length ) { + $("#issues-table_processing").position({ + of: $( "#issues-table" ), + collision: "none" + }); + } // Don't load relatives' issues table unless it is clicked on var relativesIssuesTable; @@ -406,17 +408,12 @@ $(document).ready(function() { } }); - $("#relatives-issues-table_processing").position({ - of: $( "#relatives-issues-table" ), - collision: "none" - }); - - $("#issues-table").on("sort",function() { - $("#previous").hide(); // Don't want to see "previous checkouts" header sorted with other rows - }); - $("#relatives-issues-table").on("sort",function() { - $("#relprevious").hide(); // Don't want to see "previous checkouts" header sorted with other rows - }); + if ( $("#relatives-issues-table").length ) { + $("#relatives-issues-table_processing").position({ + of: $( "#relatives-issues-table" ), + collision: "none" + }); + } if ( AllowRenewalLimitOverride ) { $( '#override_limit' ).click( function () { --- a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js @@ -121,10 +121,12 @@ $(document).ready(function() { }, }); - $("#holds-table_processing").position({ - of: $( "#holds-table" ), - collision: "none" - }); + if ( $("#holds-table").length ) { + $("#holds-table_processing").position({ + of: $( "#holds-table" ), + collision: "none" + }); + } } }); --