minification repairs; minor nits
authorBill Erickson <berick@esilibrary.com>
Tue, 6 May 2014 16:21:07 +0000 (12:21 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 6 May 2014 16:21:07 +0000 (12:21 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/staff/app.js
Open-ILS/web/js/ui/default/staff/services/coresvc.js
Open-ILS/web/js/ui/default/staff/services/hatch.js
Open-ILS/web/js/ui/default/staff/services/pcrud.js
Open-ILS/web/js/ui/default/staff/services/statusbar.js
Open-ILS/web/js/ui/default/staff/services/ui.js

index bfe6542..495d387 100644 (file)
@@ -6,7 +6,10 @@
 
 angular.module('egHome', ['ngRoute', 'ui.bootstrap', 'egCoreMod', 'egUiMod'])
 
-.config(function($routeProvider, $locationProvider) {
+.config(
+       ['$routeProvider','$locationProvider',
+function($routeProvider , $locationProvider) {
+    $locationProvider.html5Mode(true);
 
     /**
      * Route resolvers allow us to run async commands
@@ -33,10 +36,7 @@ angular.module('egHome', ['ngRoute', 'ui.bootstrap', 'egCoreMod', 'egUiMod'])
         controller : 'SplashCtrl',
         resolve : resolver
     });
-
-    // HTML5 pushstate support
-    $locationProvider.html5Mode(true);
-})
+}])
 
 /**
  * Login controller.  
index 62f4840..8bedf05 100644 (file)
@@ -4,6 +4,7 @@
  * Aggregates all core services into a container service.  This allows
  * use of core services without having to inject each individually.
  */
+
 angular.module('egCoreMod')
 
 .factory('egCore', 
index 3f147db..2366f71 100644 (file)
@@ -472,7 +472,7 @@ angular.module('egCoreMod')
         template : '<div id="eg-print-container-for-html"></div>',
         controller : 
                    ['$scope','$window','$timeout','egHatch', 
-            function($scope , $window , $timeout, egHatch) {
+            function($scope , $window , $timeout , egHatch) {
 
                 egHatch.onBrowserPrint = function(contentType, content) {
                     switch(contentType) {
index 7caec9a..54c91c3 100644 (file)
  * resolver.  The PCRUDContext object can be used to make subsequent 
  * pcrud calls directly.
  *
- * egPCRUD.connnect().then(
- *   function(ctx) {
- *     ctx.retrieve('aou', 1).then(
- *       function(org) {
- *         console.log(org.id());
- *         ctx.disconnect();
- *       }
- *     )
- *   }
- * );
+ * egPCRUD.connnect()
+ * .then(function(ctx) { return ctx.retrieve('aou', 1) })
+ * .then(function(org) { console.log(org.id()); ctx.disconnect() })
+ *
  */
 angular.module('egCoreMod')
 
-// env fetcher
 .factory('egPCRUD', ['$q', 'egAuth', 'egIDL', function($q, egAuth, egIDL) { 
     
     var service = {};
index 67704d9..29968f9 100644 (file)
@@ -16,8 +16,8 @@ angular.module('egCoreMod')
         replace : true,
         templateUrl : 'eg-status-bar-template',
         controller : [
-            '$scope', '$rootScope', 'egHatch',
-            function($scope, $rootScope, egHatch) {
+                    '$scope','$rootScope','egHatch',
+            function($scope , $rootScope , egHatch) {
             $scope.messages = []; // keep a log of recent messages
 
             $scope.netConnected = function() {
index c18080f..8abb2f3 100644 (file)
@@ -9,8 +9,8 @@ angular.module('egUiMod', ['egCoreMod', 'ui.bootstrap'])
  * $scope.iAmOpen = true;
  */
 .directive('focusMe', 
-['$timeout', '$parse', 
-function($timeout, $parse) {
+       ['$timeout','$parse', 
+function($timeout , $parse) {
     return {
         link: function(scope, element, attrs) {
             var model = $parse(attrs.focusMe);
@@ -31,8 +31,8 @@ function($timeout, $parse) {
  * Useful for de-focusing when no other obvious focus target exists
  */
 .directive('blurMe', 
-['$timeout', '$parse', 
-function($timeout, $parse) {
+       ['$timeout','$parse', 
+function($timeout , $parse) {
     return {
         link: function(scope, element, attrs) {
             var model = $parse(attrs.blurMe);
@@ -51,8 +51,8 @@ function($timeout, $parse) {
 // <input select-me="iWantToBeSelected"/>
 // $scope.iWantToBeSelected = true;
 .directive('selectMe', 
-['$timeout', '$parse', 
-function($timeout, $parse) {
+       ['$timeout','$parse', 
+function($timeout , $parse) {
     return {
         link: function(scope, element, attrs) {
             var model = $parse(attrs.selectMe);
@@ -83,7 +83,10 @@ function($timeout, $parse) {
  * egAlertDialog.open({message : 'hello {{name}}'}).result.then(
  *     function() { console.log('alert closed') });
  */
-.factory('egAlertDialog', function($modal, $interpolate) {
+.factory('egAlertDialog', 
+
+        ['$modal','$interpolate',
+function($modal , $interpolate) {
     var service = {};
 
     service.open = function(message, msg_scope) {
@@ -102,13 +105,16 @@ function($timeout, $parse) {
     }
 
     return service;
-})
+}])
 
 /**
  * egConfirmDialog.open("some message goes {{here}}", {
  *  here : 'foo', ok : function() {}, cancel : function() {}});
  */
-.factory('egConfirmDialog', function($modal, $interpolate) {
+.factory('egConfirmDialog', 
+    
+       ['$modal','$interpolate',
+function($modal, $interpolate) {
     var service = {};
 
     service.open = function(title, message, msg_scope) {
@@ -132,7 +138,7 @@ function($timeout, $parse) {
     }
 
     return service;
-})
+}])
 
 /**
  * Nested org unit selector modeled as a Bootstrap dropdown button.