[open-ils-commits] r11342 - in trunk/Open-ILS/web: js/ui/default/conify/global/permission templates/default/conify/global/permission

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Nov 25 10:52:07 EST 2008


Author: erickson
Date: 2008-11-25 10:52:05 -0500 (Tue, 25 Nov 2008)
New Revision: 11342

Modified:
   trunk/Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js
   trunk/Open-ILS/web/templates/default/conify/global/permission/grp_penalty_threshold.tt2
Log:
plugged org labels to grid

Modified: trunk/Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js	2008-11-25 15:51:37 UTC (rev 11341)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js	2008-11-25 15:52:05 UTC (rev 11342)
@@ -5,6 +5,7 @@
 dojo.require('openils.PermGrp');
 dojo.require('openils.widget.OrgUnitFilteringSelect');
 dojo.require('openils.widget.PermGrpFilteringSelect');
+dojo.require('fieldmapper.OrgUtils');
 
 var GPT = {
 
@@ -91,6 +92,13 @@
                 oncomplete: GPT._loadCspComplete
             }
         );
+    }, 
+
+    getOrgInfo : function(rowIndex, item) {
+        if(item) {
+            var orgId = this.grid.store.getValue(item, this.field);
+            return fieldmapper.aou.findOrgUnit(orgId).shortname();
+        }
     }
 };
 

Modified: trunk/Open-ILS/web/templates/default/conify/global/permission/grp_penalty_threshold.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/permission/grp_penalty_threshold.tt2	2008-11-25 15:51:37 UTC (rev 11341)
+++ trunk/Open-ILS/web/templates/default/conify/global/permission/grp_penalty_threshold.tt2	2008-11-25 15:52:05 UTC (rev 11342)
@@ -52,7 +52,7 @@
                 <tr>
                     <th field="id">ID</th>
                     <th field="grp" width='auto' get='GPT.getGroupName'>Group</th>
-                    <th field="org_unit" width='auto'>Context Org Unit</th>
+                    <th field="org_unit" width='auto' get='GPT.getOrgInfo'>Context Org Unit</th>
                     <th field="penalty" width='auto'>Penalty</th>
                     <th field="threshold" width='auto'>threshold</th>
                 </tr>



More information about the open-ils-commits mailing list