the fields of the object they're editing.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17547
dcc99617-32d9-48b4-a31d-
7c20da2025e4
// core widget provided for us, attach and move on
if(this.parentNode) // may already be in the "right" place
this.parentNode.appendChild(this.widget.domNode);
- if(this.widget.attr('value') == null)
+ if (this.shove) {
+ this.widget.attr("value", this.widgetValue);
this._widgetLoaded();
+ } else if (this.widget.attr("value") == null) {
+ this._widgetLoaded();
+ }
return;
}
this.overrideWidgetArgs[field.name] // per-field overrides
);
+ if (this.overrideWidgets[field.name]) {
+ if (this.overrideWidgets[field.name].shove &&
+ this.mode == "update") {
+ args.shove = true;
+ }
+ }
+
if(args.readOnly) {
dojo.addClass(nameTd, 'openils-widget-editpane-ro-name-cell');
dojo.addClass(valTd, 'openils-widget-editpane-ro-value-cell');