Skip to content

Commit

Permalink
Add missing bracket.
Browse files Browse the repository at this point in the history
  • Loading branch information
puresyntax71 committed Sep 28, 2023
1 parent 2ba54c4 commit 7ab13f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/webform_civicrm_forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ var wfCivi = (function (D, $, drupalSettings, once) {

function sharedAddress(item, action, speed) {
var name = parseName($(item).attr('name'));
var fields = $(item).parents('form.webform-submission-form').find('[name*="'+(name.replace(/master_id.*$/, ''))+'"').not('[name*=location_type_id]').not('[name*=master_id]').not('[type="hidden"]');
var fields = $(item).parents('form.webform-submission-form').find('[name*="'+(name.replace(/master_id.*$/, ''))+'"]').not('[name*=location_type_id]').not('[name*=master_id]').not('[type="hidden"]');
if (action === 'hide') {
fields.parent().hide(speed, function() {$(this).css('display', 'none');});
fields.prop('disabled', true);
Expand Down

0 comments on commit 7ab13f8

Please sign in to comment.