lp1759327 Populate Copy Templates Floating Dropdown user/khuckins/lp1759327-volcopy-populate-floating-dropdown
authorKyle Huckins <khuckins@catalyte.io>
Tue, 1 May 2018 18:28:36 +0000 (18:28 +0000)
committerKyle Huckins <khuckins@catalyte.io>
Tue, 1 May 2018 20:18:29 +0000 (20:18 +0000)
- 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 <khuckins@catalyte.io>
 Changes to be committed:
modified:   Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index eb8ac05..59ef059 100644 (file)
@@ -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');