From: erickson Date: Mon, 20 Jul 2009 03:20:48 +0000 (+0000) Subject: display label strings for linked objects instead of bare pkeys. still need to look... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b230b8bfd4af9102baa7a77a37a4e78681359891;p=evergreen%2Ftadl.git 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 --- 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(); } }