lp1759327 Populate Copy Templates Floating Dropdown
authorKyle Huckins <khuckins@catalyte.io>
Tue, 1 May 2018 18:28:36 +0000 (18:28 +0000)
committerJason Stephenson <jason@sigio.com>
Wed, 23 May 2018 18:21:58 +0000 (14:21 -0400)
- 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>
Signed-off-by: Jeanette Lundgren <jlundgren@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>

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');