Skip to content

Commit

Permalink
feat(vue-clock): changed 'business days' to just be 'actual days'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymwells committed Feb 21, 2024
1 parent 6dba0ff commit 40e41a5
Show file tree
Hide file tree
Showing 3 changed files with 260 additions and 62 deletions.
20 changes: 9 additions & 11 deletions scripts/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,8 @@ $('form[action^="https://api.hsforms.com"]').each(function (i) {
if (response) {
// if response inline, display contents
if (response.inlineMessage) {
/**
* page is NOT disclosures
*/
if (
(
(isOnURL('/support') || isOnURL('/contact')) &&
!isOnURL('support/disclosures')
) || isOnURL('jw-test')
) {
document.location.href = '../thank-you';
} else if (isOnURL('support/disclosures')) {

if (isOnURL('support/disclosures')) {
/**
* page IS disclosures
*/
Expand All @@ -214,6 +205,13 @@ $('form[action^="https://api.hsforms.com"]').each(function (i) {
const message = response.inlineMessage + reset(ms / 1000);
parent.children('.w-form-done').html(message);
}, 1000);
} else if (isOnURL('drupal-7-channel-partners')) {
document.location.href = '/form-submitted-partners';
} else {
/**
* page is NOT disclosures
*/
document.location.href = '../thank-you';
}
}
} else {
Expand Down
Loading

0 comments on commit 40e41a5

Please sign in to comment.