From 5221ee5158a330afc779b52de2fbce00115422ad Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 13 Aug 2015 11:14:19 -0400 Subject: [PATCH] handle disabling mark overlay button when paging through search results Signed-off-by: Jason Etheridge --- Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index ebbd8ebb8e..5fc17f6f96 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -209,6 +209,12 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e $scope.record_id = match[1]; egCore.hatch.setLocalItem("eg.cat.last_record_retrieved", $scope.record_id); $scope.holdings_record_id_changed($scope.record_id); + // FIXME -- we could add a permission check here + if ($scope.record_id == egCore.hatch.getLocalItem('eg.cat.marked_overlay_record')) { + $scope.disable_mark_for_overlay = true; + } else { + $scope.disable_mark_for_overlay = false; + } init_parts_url(); } else { delete $scope.record_id; -- 2.11.0