From: Mike Rylander Date: Mon, 22 Jun 2015 17:26:55 +0000 (-0400) Subject: webstaff: Attempt to provide defaults X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ce971ebc1772b7fbb4926c63f87e58fa3c263b43;p=evergreen%2Fmasslnc.git webstaff: Attempt to provide defaults Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- 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 eb9cb1e906..85bbf802ed 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 @@ -224,14 +224,17 @@ function($scope , $routeParams , $location , $q , egCore , egHolds, ); egCore.hatch.getItem('cat.holdings.show_copies').then(function(x){ - $scope.holdings_show_copies = x + if (x === null) x = true; + $scope.holdings_show_copies = x; }); egCore.hatch.getItem('cat.holdings.show_vols').then(function(x){ + if (x === null) x = true; $scope.holdings_show_vols = x; }); egCore.hatch.getItem('cat.holdings.show_emtpy').then(function(x){ + if (x === null) x = false; $scope.holdings_show_empty = x; });