From: Jason Etheridge Date: Wed, 12 Aug 2015 17:52:05 +0000 (-0400) Subject: use localStorage for the overlay-record selection X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c98b18e160956ed3aaf448c2f1a374e414fe1432;p=working%2FEvergreen.git use localStorage for the overlay-record selection in the Import Record from z39.50 interface Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js index 3b39d30536..5476c71339 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js @@ -175,7 +175,7 @@ function($scope , $q , $location , $timeout , $window, egCore , egGridDataProvi return true; }; - $scope.local_overlay_target = 0; + $scope.local_overlay_target = egCore.hatch.getLocalItem('eg.cat.marked_overlay_record') || 0; $scope.mark_as_overlay_target = function() { var items = $scope.gridControls.selectedItems(); if ($scope.local_overlay_target == items[0].tcn()) { @@ -183,6 +183,7 @@ function($scope , $q , $location , $timeout , $window, egCore , egGridDataProvi } else { $scope.local_overlay_target = items[0].tcn(); } + egCore.hatch.setLocalItem('eg.cat.marked_overlay_record',$scope.local_overlay_target); } $scope.cant_overlay = function() { if (!$scope.local_overlay_target) return true;