better stub out the other tabs, and try to select CONS by default
authorJason Etheridge <jason@esilibrary.com>
Fri, 10 Jun 2016 16:37:01 +0000 (12:37 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 18 Aug 2016 19:34:21 +0000 (15:34 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/templates/staff/admin/actor/org_unit/t_addresses_tab.tt2
Open-ILS/src/templates/staff/admin/actor/org_unit/t_hours_tab.tt2
Open-ILS/src/templates/staff/admin/actor/org_unit/t_index.tt2
Open-ILS/web/js/ui/default/staff/admin/actor/org_unit/app.js

index b45667f..1f883b4 100644 (file)
                 [% INCLUDE 'staff/admin/actor/org_unit/t_main_tab.tt2' %]
             </div>
             <div ng-show="org_tab == 'hours'">
-                <span>hours tab</span>
+                [% INCLUDE 'staff/admin/actor/org_unit/t_hours_tab.tt2' %]
             </div>
             <div ng-show="org_tab == 'addresses'">
-                <span>addr tab</span>
+                [% INCLUDE 'staff/admin/actor/org_unit/t_addresses_tab.tt2' %]
             </div>
           </div>
         </div>
index bab6a63..bd24c80 100644 (file)
@@ -58,6 +58,7 @@ function($scope , $q , $routeParams , $window , egCore , egOrg  ) {
     // the org tree
 
     $scope.treedata = [ egCore.idl.toHash( egOrg.tree() ) ];
+    $scope.selected = $scope.treedata[0]; // FIXME -- why no work?
     $scope.expandedNodes = [ $scope.treedata[0] ];
 
     $scope.showSelected = function(sel) {