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=ebe1167a7c9c4ef79e7366a74d6f77ee130e16b1;p=evergreen%2Fmasslnc.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 eb8ac0561f..59ef059d97 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 @@ -2532,7 +2532,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');