LP#1705524 Load workstation org timezone in startup
authorBill Erickson <berickxx@gmail.com>
Thu, 3 Aug 2017 15:25:56 +0000 (11:25 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 11 Aug 2017 19:09:27 +0000 (15:09 -0400)
Piggy-back on the batch org setting call made during page startup to
load / pre-cache the timezone setting for the workstation org unit.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/services/startup.js

index ea114d2..038eb2d 100644 (file)
@@ -32,7 +32,8 @@ function($q,  $rootScope,  $location,  $window,  egIDL,  egAuth,  egEnv , egOrg
         function() {
             return egOrg.settings([
                 'webstaff.format.dates',
-                'webstaff.format.date_and_time'
+                'webstaff.format.date_and_time',
+                'lib.timezone'
             ]).then(
                 function(set) {
                     $rootScope.egDateFormat =