From 01499fc0b0c6bf1c7fd051d400c4fbf58ec87cbf Mon Sep 17 00:00:00 2001 From: ariannedee Date: Thu, 22 Oct 2020 15:16:51 -0700 Subject: [PATCH] DIV-1209: Set filing to In-person if the user was married outside of Canada --- edivorce/apps/core/static/js/signing-filing.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/edivorce/apps/core/static/js/signing-filing.js b/edivorce/apps/core/static/js/signing-filing.js index 1758ec02..365a6e09 100644 --- a/edivorce/apps/core/static/js/signing-filing.js +++ b/edivorce/apps/core/static/js/signing-filing.js @@ -90,15 +90,19 @@ $(window).load(function () { if ($("input:radio[name='how_to_sign']:checked").length === 0) { $("#sign-together").prop('checked', true).trigger('change'); } - if ($("input:radio[name='how_to_file']:checked").length === 0) { + if ($("input:radio[name='how_to_file']").length === 0) { + ajaxCall('how_to_file', 'In-person'); + } else if ($("input:radio[name='how_to_file']:checked").length === 0) { $("#file-online").prop('checked', true).trigger('change'); } } setDefaults() - toggleSigningLocation(); - toggleSignVirtually(); - toggleFileInPerson(); + if ($("input:radio[name='how_to_file']").length > 0) { + toggleSigningLocation(); + toggleSignVirtually(); + toggleFileInPerson(); + } $('#check-email-filled').on('click', function (e) { var yourEmailInput = $('#email-you-input');