From b230b8bfd4af9102baa7a77a37a4e78681359891 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 20 Jul 2009 03:20:48 +0000 Subject: [PATCH] display label strings for linked objects instead of bare pkeys. still need to look at resizing the cell 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 | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index 6fb19edbe1..9666dc89d3 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -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(); } } -- 2.11.0