1.7

Table Of Contents
> 1) {
if (!confirm("The group rule being removed " +
"contains multiple rules.\n\nAre "
+
"you sure you wish to continue ?"))
{
remove = false;
}
}
if (remove) { $rule.remove(); }
})
/** Add Search Rule Handler */
.on("click", "#add-search", function (event) {
var type = $("#search")
.find("#rule-type")
.val(),
$rule = loadRule("search", type);
$(event.target)
.closest(".rule")
.children("div.rule-body")
.children("div.sub-rules")
.append($rule);
if (type === "finishing") {
$rule
.find("#finishing-type")
.trigger("change");
}
})
/** Add Sorting/Grouping Rule Handler */
.on("click", "#add-sorting", addSortGroupRule)
.on("click", "#add-grouping", addSortGroupRule)
/** Submit Form Rules Handler */
.on("submit", function (event) {
event.preventDefault();
if (!c.checkSessionValid()) { return; }
/** Process & Add Search Rules */
Page 132