From: Kyle Huckins Date: Tue, 1 May 2018 18:28:36 +0000 (+0000) Subject: lp1759327 Populate Copy Templates Floating Dropdown X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=896447c0e5cd1bc06c0e6a7c16ad9ff0ca4c3a92;p=evergreen%2Fpines.git lp1759327 Populate Copy Templates Floating Dropdown - Add update watcher and call itemSvc.get_floating_groups within egVolTemplate directive to properly populate dropdown when accessing volcopy editor from local administration. Signed-off-by: Kyle Huckins Signed-off-by: Jeanette Lundgren Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 43047e337b..8ee365f2ac 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -2241,7 +2241,13 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.age_protect_list = list; }); createSimpleUpdateWatcher('age_protect'); - + + $scope.floating_list = []; + itemSvc.get_floating_groups().then(function(list){ + $scope.floating_list = list; + }); + createSimpleUpdateWatcher('floating'); + createSimpleUpdateWatcher('circulate'); createSimpleUpdateWatcher('holdable'); createSimpleUpdateWatcher('fine_level');