inject array for patron app resolver; comments
authorBill Erickson <berick@esilibrary.com>
Mon, 28 Apr 2014 13:09:33 +0000 (09:09 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 28 Apr 2014 13:09:33 +0000 (09:09 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/staff/circ/patron/app.js

index b390d77..b53e2f0 100644 (file)
@@ -1,10 +1,7 @@
-/*
- * TODO:
- * when this file starts getting too large and we want to add code for 
- * UIs that are not typically rendered (i.e. we don't necessarily want 
- * to fetch the code on every page load), we can create tab-specific
- * controllers which live in separate JS files which are only fetched
- * when the related tab template is fetched.
+/**
+ * Patron App
+ *
+ * Search, checkout, items out, holds, bills, edit, etc.
  */
 
 angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap', 
@@ -17,9 +14,9 @@ angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap',
     // data loaded at startup which only requires an authtoken goes
     // here. this allows the requests to be run in parallel instead of
     // waiting until startup has completed.
-    var resolver = {delay : 
-        // TODO: $inject array
-        function(egAuth, egUser, egNet, egEnv, egPCRUD, egStartup, egOrg) {
+    var resolver = {delay : [
+                'egAuth','egUser','egNet','egEnv','egPCRUD','egStartup','egOrg',
+        function(egAuth , egUser , egNet , egEnv , egPCRUD , egStartup , egOrg) {
 
         // fetch the org settings we care about during egStartup
         // and toss them into egEnv as egEnv.aous[name] = value.
@@ -47,7 +44,7 @@ angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap',
         egUser.defaultFleshFields.push('ident_type2');
 
         return egStartup.go()
-    }};
+    }]};
 
     $routeProvider.when('/circ/patron/search', {
         templateUrl: './circ/patron/t_search',