Skip to content

Commit

Permalink
Fix parent field name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil Sharma committed Oct 18, 2024
1 parent 2c29afd commit ea5bf42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tide_site/js/quick_exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

Drupal.behaviors.siteQuickExitFields = {
attach: function (context, settings) {
var parent = ($('.taxonomy-term-sites-form #edit-parent'));
var parentVal = parent.val();
var parentField = ($('.taxonomy-term-sites-form #edit-parent'));
var parentVal = parentField.val();
if (parentVal == 0) {
$('.field--name-field-show-exit-site-specific').hide();
}
Expand Down

0 comments on commit ea5bf42

Please sign in to comment.