LP#1541801: add angular-order-object-by dependency
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 6 Feb 2017 17:03:28 +0000 (12:03 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 6 Feb 2017 17:03:28 +0000 (12:03 -0500)
This adds a orderObjectBy filter that permits the ordering
of results in ng-repeat when the source collection is an
object instead of any array, e.g.,

<div ng-repeat=(foo, bar) in object | orderObjectBy: 'sortfield' ...

The dependency is MIT-licensed and is copyright (c) 2015 Fabricio Quagliariello

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/base_js.tt2
Open-ILS/web/js/ui/default/staff/Gruntfile.js
Open-ILS/web/js/ui/default/staff/bower.json

index fac9711..224ae0f 100644 (file)
@@ -17,6 +17,7 @@
 <script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/ngToast.min.js"></script>
 <script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/angular-tree-control.js"></script>
 <script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/iframeResizer.min.js"></script>
+<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/ng-order-object-by.js"></script>
 
 <!-- IDL / opensrf (network) -->
 <script src="[% ctx.media_prefix %]/js/dojo/opensrf/JSON_v1.js"></script>
index 2d982c4..7015786 100644 (file)
@@ -35,7 +35,8 @@ module.exports = function(grunt) {
             'bower_components/angular-cookies/angular-cookies.min.js.map',
             'bower_components/iframe-resizer/js/iframeResizer.min.js',
             'bower_components/iframe-resizer/js/iframeResizer.map',
-            'bower_components/iframe-resizer/js/iframeResizer.contentWindow.min.js'
+            'bower_components/iframe-resizer/js/iframeResizer.contentWindow.min.js',
+            'bower_components/angular-order-object-by/src/ng-order-object-by.js'
           ]
         }]
       },
index ff2ede1..65a8539 100644 (file)
@@ -31,7 +31,8 @@
     "angular-animate": "~1.5.3",
     "angular-hotkeys": "cfp-angular-hotkeys#^1.7.0",
     "angular-cookies": "^1.5.8",
-    "iframe-resizer": "^3.5.5"
+    "iframe-resizer": "^3.5.5",
+    "angular-order-object-by": "*"
   },
   "resolutions": {
     "angular": "~1.5.5"