[open-ils-commits] r12795 - trunk/Open-ILS/web/js/ui/default/conify/global/config (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Apr 6 09:15:41 EDT 2009


Author: erickson
Date: 2009-04-06 09:15:39 -0400 (Mon, 06 Apr 2009)
New Revision: 12795

Modified:
   trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
Log:
repaired the disable widget logic

Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js	2009-04-06 13:06:54 UTC (rev 12794)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js	2009-04-06 13:15:39 UTC (rev 12795)
@@ -9,12 +9,11 @@
 
 function spBuildGrid() {
     spGrid.disableWidgetTest = function(field, obj) {
-        if(field == 'name') return true;
-        if(obj.id() > 100) return false;       
+        if(obj && obj.id() < 100 && field == 'name')
+            return true;
         return false;
     }
- spGrid.loadAll({order_by:{csp : 'name'}});
-   
+    spGrid.loadAll({order_by:{csp : 'name'}});
 }
 
 function formatId(inDatum) {
@@ -22,7 +21,6 @@
         return "<span style='color:red;'>"+ inDatum +"</span>";
     }
     return inDatum;
-        
 }
 
 openils.Util.addOnLoad(spBuildGrid);



More information about the open-ils-commits mailing list