letting the current value of an object pass through to the overriding widget
when /editing/.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17555
dcc99617-32d9-48b4-a31d-
7c20da2025e4
if(this.parentNode) // may already be in the "right" place
this.parentNode.appendChild(this.widget.domNode);
if (this.shove) {
- this.widget.attr("value", this.widgetValue);
+ if (this.shove.mode == "update")
+ this.widget.attr("value", this.widgetValue);
+ else
+ this.widgetValue = this.shove.create;
this._widgetLoaded();
} else if (this.widget.attr("value") == null) {
this._widgetLoaded();
);
if (this.overrideWidgets[field.name]) {
- if (this.overrideWidgets[field.name].shove &&
- this.mode == "update") {
- args.shove = true;
+ if (this.overrideWidgets[field.name].shove) {
+ args.shove = dojo.mixin(
+ {"mode": this.mode},
+ this.overrideWidgets[field.name].shove
+ );
}
}