Skip to content

Instantly share code, notes, and snippets.

@guipdutra
Last active December 18, 2015 10:28
Show Gist options
  • Save guipdutra/5768298 to your computer and use it in GitHub Desktop.
Save guipdutra/5768298 to your computer and use it in GitHub Desktop.
function changeBudgetChangeDecreeTypeVisibility(event) {
var $BudgetChangeDecreeTypeWrapper = $budgetChangeDecreeTypeInput.closest('div');
if ($regulatoryActTypeInput.val() == '<%= RegulatoryActType::BUDGET_CHANGE %>' &&
$classificationInput.val() == '<%= RegulatoryActClassification::DECREE %>') {
$BudgetChangeDecreeTypeWrapper.show();
} else {
$BudgetChangeDecreeTypeWrapper.hide();
}
$budgetChangeDecreeTypeInput.change();
$budgetChangeDecreeTypeInput.requiredField($budgetChangeDecreeTypeInput.is(':visible'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment