[open-ils-commits] r13628 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jul 19 23:20:50 EDT 2009


Author: erickson
Date: 2009-07-19 23:20:48 -0400 (Sun, 19 Jul 2009)
New Revision: 13628

Modified:
   trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
Log:
display label strings for linked objects instead of bare pkeys.  still need to look at resizing the cell

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js	2009-07-20 02:47:04 UTC (rev 13627)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js	2009-07-20 03:20:48 UTC (rev 13628)
@@ -470,10 +470,19 @@
             fmClass: this.grid.fmClass,
             fmField: this.field,
             widgetValue : val,
-            readOnly : true,
-            forceSync : true
+            readOnly : true
         });
-        //autoWidget.build();
+
+        var _this = this;
+        autoWidget.build(
+            function(w, ww) {
+                var node = _this.grid.getCell(_this.index).view.getCellNode(rowIndex, _this.index);
+                if(node) {
+                    node.innerHTML = ww.getDisplayString();
+                }
+            }
+        );
+
         return autoWidget.getDisplayString();
     }
 }



More information about the open-ils-commits mailing list