Support labelFormat for read-only AutoFieldWidget's user/berick/autofieldwidget-ro-label-format
authorBill Erickson <berick@esilibrary.com>
Tue, 23 Aug 2011 18:22:06 +0000 (14:22 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 23 Aug 2011 18:22:06 +0000 (14:22 -0400)
commitb2d89c315e2135d062d98697018e703633f9e978
tree1c45535924e657aa3fff586b168762b991dec7c1
parente3592ec729f9750f0a0e9d453e9f0b859ab5a9aa
Support labelFormat for read-only AutoFieldWidget's

Previously only worked with edit widgets (e.g. drop-downs).  This also
takes into account the fact that different instances of AutoFieldWidget
for the same class and value may have different labelFormat's

One user-visible result of this change is the ACQ read-only fund display
in purchase orders.  Funds will now show the code and year for funds in
the copy grid before and after the data is rendered read-only.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js