[open-ils-commits] r13051 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon May 4 12:28:52 EDT 2009
Author: erickson
Date: 2009-05-04 12:28:50 -0400 (Mon, 04 May 2009)
New Revision: 13051
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
capture async widgets after they are loaded
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-05-04 16:26:06 UTC (rev 13050)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-05-04 16:28:50 UTC (rev 13051)
@@ -518,8 +518,11 @@
orgLimitPerms : ['CREATE_PICKLIST'],
dijitArgs : {required:false}
});
- widget.build();
- self.copyBatchWidgets[field] = widget.widget;
+ widget.build(
+ function(w, ww) {
+ self.copyBatchWidgets[field] = w;
+ }
+ );
}
}
);
@@ -584,7 +587,10 @@
});
widget.build(
// make sure we capture the value from any async widgets
- function(w, ww) { copy[field](ww.getFormattedValue()) }
+ function(w, ww) {
+ copy[field](ww.getFormattedValue())
+ self.copyWidgetCache[copy.id()][field] = w;
+ }
);
dojo.connect(widget.widget, 'onChange',
function(val) {
@@ -595,7 +601,6 @@
}
}
);
- self.copyWidgetCache[copy.id()][field] = widget.widget;
}
);
More information about the open-ils-commits
mailing list