this_.addButton.onclick();
});
this_.inputWidget.dest.value = '';
-
+ } else if (this_.inputWidget instanceof oilsRptTruncPicker) {
+ // add each seed value to the input widget, then
+ // propagate the value into our multiselect.
+ // when done, clear the value from the date widget.
+ dojo.forEach(this_.seedValue, function(val) {
+ if (seed = val) {
+ if (typeof seed == 'string') {
+ this_.inputWidget.calWidget.input.value = seed;
+ } else {
+ // relative date transform
+ if (seed.transform.match(/relative/)) {
+ setSelector(this_.inputWidget.selector, 2)
+ setSelector(this_.inputWidget.numberPicker.selector,
+ Math.abs(seed.params[0]));
+ }
+ }
+ }
+ this_.addButton.onclick();
+ this_.inputWidget.calWidget.input.value = '';
+ setSelector(this_.inputWidget.selector, 1)
+ setSelector(this_.inputWidget.numberPicker.selector, 1);
+ this_.inputWidget.selector.onchange();
+ });
} else {
this_.addButton.onclick();
}
this.node = args.node;
this.calFormat = args.calFormat;
this.input = elem('input',{type:'text',size:12});
- this.seedValue = args.value;
+ if (!dojo.isArray(args.value)) {
+ // if the value is an array, we're probably
+ // in an oilsRptTruncPicker that is inside
+ // an oilsRptSetWidget
+ this.seedValue = args.value;
+ }
this.input.disabled = Boolean(args.readonly);
oilsRptMonitorWidget(this.input, args.regex);
}
}
+ if (dojo.isArray(this.seedValue)) {
+ // we're part of a in-list selector, so let
+ // post-draw handle this
+ return;
+ }
+
if (seed = this.seedValue) {
if (typeof seed == 'string') {
this.calWidget.value = seed;