[open-ils-commits] r13630 - branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jul 19 23:23:35 EDT 2009
Author: erickson
Date: 2009-07-19 23:23:33 -0400 (Sun, 19 Jul 2009)
New Revision: 13630
Modified:
branches/rel_1_6_0/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: branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-07-20 03:22:27 UTC (rev 13629)
+++ branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-07-20 03:23:33 UTC (rev 13630)
@@ -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