From 521a5ccce980a877bac6c758f80e2720cac20a49 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 28 Apr 2014 09:09:33 -0400 Subject: [PATCH] inject array for patron app resolver; comments Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index b390d77270..b53e2f0c62 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -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', -- 2.11.0