display label strings for linked objects instead of bare pkeys. still need to look...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Jul 2009 03:20:48 +0000 (03:20 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Jul 2009 03:20:48 +0000 (03:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13628 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/AutoGrid.js

index 6fb19ed..9666dc8 100644 (file)
@@ -470,10 +470,19 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
             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();
     }
 }