2021.1

Table Of Contents
.children();
$element
.empty()
.append(options.clone());
$element.val($element
.find("option[selected]")
.val());
});
/* Allow Rules to be Draggable by Label */
$rule.children("label")
.prop("draggable", true)
.addClass("draggable");
/* Append Add / Remove Rule Buttons */
var $buttons = $("<div>", { "class": "form-only"
}).append(
$("<input>", { "id": "remove-rule", "type":
"button",
"value": "Remove Rule" }));
if (ruleType === "RULESET") {
$buttons
.append(
$("<input>", { "id": "add-rule", "type":
"button",
"value": "Add Search Rule" }))
.children("#remove-rule")
.attr("value", "Remove Set");
}
$rule.children("div.rule-body").append($buttons);
return $rule;
}
/* Manage the Available Rule Types based on Entity Type */
$("#entity")
.on("click", function (event) {
var $entity = $(event.target);
$entity.data("previous", $entity.val());
})
.on("change", function (event) {
var $entity = $(event.target),
categories = ["search", "sorting", "grouping"],
options = {},
Page 202