dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.form.DropDownButton");
dojo.require("dijit.form.TextBox");
- dojo.require("dijit.form.NumberTextBox");
var _needed_fields = "abcdefghijklm";
}
dojo.create("td", {"innerHTML": field.caption}, tr);
- var dij = field.subfield > "h" ?
- dijit.form.NumberTextBox : dijit.form.TextBox;
- var input = new dij(
- {
- "name": field.subfield,
- "constraints": {"pattern": "####"}
- },
+ var input = new dijit.form.TextBox(
+ {"name": field.subfield},
dojo.create("td", null, tr)
);
input.startup();
inputs.forEach(
function(input) {
var value = input.input.attr("value");
- if (value === null || isNaN(value)) {
+ if (value === null || value === "") {
/* XXX i18n */
alert("A valid holding code cannot be " +
"produced with any blank fields.");