From: Jason Etheridge Date: Thu, 13 Aug 2015 15:14:19 +0000 (-0400) Subject: handle disabling mark overlay button when paging through search results X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5221ee5158a330afc779b52de2fbce00115422ad;p=working%2FEvergreen.git handle disabling mark overlay button when paging through search results Signed-off-by: Jason Etheridge --- 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;