1.7

Table Of Contents
var $child = $(element),
id = $child.attr("id");
if (id !== undefined && $child.attr
("disabled") === undefined) {
if (id === "duplex") {
rule[id] = $child.is
(":checked");
} else if (id !== "finishing-
type" && id !== "remove-rule") {
rule[id] = $child.val();
}
}
});
} else if (type === "group") {
rule = {
"operator": $body
.children("div")
.children("#operator")
.val(),
"rules": processSearchRule
($body.children("div.sub-rules"))
};
} else {
var condition = $body
.find("div>#condition")
.val();
rule.value = $body
.find("div>#value")
.val();
if (type === "doclength") {
rule.value = c.valueToNumber
(rule.value);
} else {
rule.name = $body
.find("div>#name")
.val();
}
if (condition === "IN" || condition ===
"NOT IN") {
rule.value = rule.value.split
(/\s*,\s*/);
}
if (condition !== "EQUAL") {
Page 130