2019.2

Table Of Contents
< 0);
if (invalid && selection === name)
selection = null;
$element.prop("disabled", invalid);
$element.prop("hidden", invalid);
})
.each(function (index, element) {
var $element = $(element);
if (selection === null &&
!$element.prop("disabled")) {
$typeSelector.val($element.val());
return false;
}
});
}
/**
* Prompt User & Remove any Existing Rules that are
* incompatible with currently Entity type selected
*/
var $existingRules = $("div.rule"),
incompatible = [];
$existingRules.each(function (index, element) {
if ($.inArray(element.id, options) < 0)
incompatible.push(index);
});
if (incompatible.length > 0)
if (confirm("The entity type selected isn't
compatible " +
"with some of the existing rules
and these " +
"will need to be removed.\n\nAre "
+
"you sure you wish to continue ?"))
{
for (i = 0; i < incompatible.length; i +=
1)
$($existingRules[incompatible
[i]]).remove();
} else {
$entity.val($entity.data("previous"));
return;
}
Page 162