From ea5bf422f607ea25034245233af8f1aa3526f9e2 Mon Sep 17 00:00:00 2001 From: Sahil Sharma Date: Fri, 18 Oct 2024 14:40:08 +1100 Subject: [PATCH] Fix parent field name --- modules/tide_site/js/quick_exit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tide_site/js/quick_exit.js b/modules/tide_site/js/quick_exit.js index 210eade39..1ba77fdc2 100644 --- a/modules/tide_site/js/quick_exit.js +++ b/modules/tide_site/js/quick_exit.js @@ -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(); }