Skip to content

Commit c1bb336

Browse files
committed
New. Integration. Chaty. Whatsapp form now works via external forms.
1 parent 9d98b6c commit c1bb336

7 files changed

Lines changed: 31 additions & 10 deletions

js/apbct-public-bundle_ext-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/src/apbct-public--5--external-forms.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ function ctCheckAjax(elem) {
636636
function isIntegratedForm(formObj) {
637637
const formAction = typeof(formObj.action) == 'string' ? formObj.action : '';
638638
const formId = formObj.getAttribute('id') !== null ? formObj.getAttribute('id') : '';
639+
const formClassName = typeof(formObj.className) == 'string' ? formObj.className : '';
639640

640641
if (
641642
(
@@ -673,8 +674,14 @@ function isIntegratedForm(formObj) {
673674
formAction.indexOf('wufoo.com') !== -1 || // Wufoo form
674675
formAction.indexOf('activehosted.com') !== -1 || // Activehosted form
675676
formAction.indexOf('publisher.copernica.com') !== -1 || // publisher.copernica
676-
( formObj.classList !== undefined &&
677-
formObj.classList.contains('sp-element-container') ) || // Sendpulse form
677+
(
678+
formAction.indexOf('whatsapp.com') !== -1 &&
679+
formClassName.indexOf('chaty') !== -1
680+
) || // chaty plugin whatsapp form
681+
(
682+
formObj.classList !== undefined &&
683+
formObj.classList.contains('sp-element-container')
684+
) || // Sendpulse form
678685
apbctIsFormInDiv(formObj, 'b24-form') // Bitrix24 CRM external forms
679686
) {
680687
return true;

js/src/apbct-public-bundle_ext-protection.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4889,6 +4889,7 @@ function ctCheckAjax(elem) {
48894889
function isIntegratedForm(formObj) {
48904890
const formAction = typeof(formObj.action) == 'string' ? formObj.action : '';
48914891
const formId = formObj.getAttribute('id') !== null ? formObj.getAttribute('id') : '';
4892+
const formClassName = typeof(formObj.className) == 'string' ? formObj.className : '';
48924893

48934894
if (
48944895
(
@@ -4926,8 +4927,14 @@ function isIntegratedForm(formObj) {
49264927
formAction.indexOf('wufoo.com') !== -1 || // Wufoo form
49274928
formAction.indexOf('activehosted.com') !== -1 || // Activehosted form
49284929
formAction.indexOf('publisher.copernica.com') !== -1 || // publisher.copernica
4929-
( formObj.classList !== undefined &&
4930-
formObj.classList.contains('sp-element-container') ) || // Sendpulse form
4930+
(
4931+
formAction.indexOf('whatsapp.com') !== -1 &&
4932+
formClassName.indexOf('chaty') !== -1
4933+
) || // chaty plugin whatsapp form
4934+
(
4935+
formObj.classList !== undefined &&
4936+
formObj.classList.contains('sp-element-container')
4937+
) || // Sendpulse form
49314938
apbctIsFormInDiv(formObj, 'b24-form') // Bitrix24 CRM external forms
49324939
) {
49334940
return true;

js/src/apbct-public-bundle_full-protection.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5330,6 +5330,7 @@ function ctCheckAjax(elem) {
53305330
function isIntegratedForm(formObj) {
53315331
const formAction = typeof(formObj.action) == 'string' ? formObj.action : '';
53325332
const formId = formObj.getAttribute('id') !== null ? formObj.getAttribute('id') : '';
5333+
const formClassName = typeof(formObj.className) == 'string' ? formObj.className : '';
53335334

53345335
if (
53355336
(
@@ -5367,8 +5368,14 @@ function isIntegratedForm(formObj) {
53675368
formAction.indexOf('wufoo.com') !== -1 || // Wufoo form
53685369
formAction.indexOf('activehosted.com') !== -1 || // Activehosted form
53695370
formAction.indexOf('publisher.copernica.com') !== -1 || // publisher.copernica
5370-
( formObj.classList !== undefined &&
5371-
formObj.classList.contains('sp-element-container') ) || // Sendpulse form
5371+
(
5372+
formAction.indexOf('whatsapp.com') !== -1 &&
5373+
formClassName.indexOf('chaty') !== -1
5374+
) || // chaty plugin whatsapp form
5375+
(
5376+
formObj.classList !== undefined &&
5377+
formObj.classList.contains('sp-element-container')
5378+
) || // Sendpulse form
53725379
apbctIsFormInDiv(formObj, 'b24-form') // Bitrix24 CRM external forms
53735380
) {
53745381
return true;

0 commit comments

Comments
 (0)