2022.2

Table Of Contents
$allRules = $temp;
["search", "sorting", "grouping"].forEach
(function (category) {
var $selector = $("fieldset#" + category)
.find("#rule-type")
.empty();
$allRules
.find("div." + category + " div.rule")
.each(function (index, rule) {
var label = $(rule)
.children("label").text
()
.replace(/
(\sRule)?\:$/, '');
$selector.append($("<option>")
.attr("value", rule.id)
.attr("class",
$(rule).attr("class"))
.text(label));
});
});
$("#entity").trigger("change");
}
$("input, select").prop("disabled", !success);
});
}());
/* Common Load Rule Function */
function loadRule(category, ruleType) {
var $rule = $allRules
.children("div." + category)
.find("div.rule[id='" + ruleType +
"']")
.clone();
/* Populate any Data Type References */
$rule.find("select[data-type]").each(function (index,
element) {
var $element = $(element),
dataType = $element.attr("data-type");
var options = $allRules
.find("#rule-data-types")
.find("#" + dataType + "-options")
Page 199