From 83bd74391f593482814d2bcb8bd0e409bde10db8 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 14 Feb 2014 09:53:27 -0500 Subject: [PATCH] Bug 11703 [QA Followup 5] --- 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(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index 9e833bd..033c5b3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/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 () { diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js b/koha-tmpl/intranet-tmpl/prog/en/js/holds.js index b63f15c..6d4f273 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js +++ b/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" + }); + } } }); -- 1.7.2.5