From fdf1e934d6b67298700a7cc01122e3b21707c6b4 Mon Sep 17 00:00:00 2001 From: a6_chris Date: Thu, 7 Feb 2019 15:10:38 +0000 Subject: [PATCH 1/2] Dispatch custom event when user accepts the policy --- src/js/public/gdpr-public.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/public/gdpr-public.js b/src/js/public/gdpr-public.js index b40c44de..965bb9b2 100644 --- a/src/js/public/gdpr-public.js +++ b/src/js/public/gdpr-public.js @@ -116,6 +116,7 @@ $(window).scrollTop(Math.abs( parseInt( scrollDistance, 10 ) ) ); $('.gdpr.gdpr-privacy-preferences .gdpr-wrapper').fadeOut(); $('.gdpr-privacy-bar').fadeOut(); + $( document ).trigger( "updatedPrivacyPreferences" ); } } else { displayNotification( response.data.title, response.data.content ); From 9806730040960707317812c91cdbbb20f2ff3ee6 Mon Sep 17 00:00:00 2001 From: Christopher Moss Date: Thu, 7 Feb 2019 15:47:28 +0000 Subject: [PATCH 2/2] Fix: Use single quotes --- src/js/public/gdpr-public.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/public/gdpr-public.js b/src/js/public/gdpr-public.js index 965bb9b2..09dce187 100644 --- a/src/js/public/gdpr-public.js +++ b/src/js/public/gdpr-public.js @@ -116,7 +116,7 @@ $(window).scrollTop(Math.abs( parseInt( scrollDistance, 10 ) ) ); $('.gdpr.gdpr-privacy-preferences .gdpr-wrapper').fadeOut(); $('.gdpr-privacy-bar').fadeOut(); - $( document ).trigger( "updatedPrivacyPreferences" ); + $( document ).trigger( 'updatedPrivacyPreferences' ); } } else { displayNotification( response.data.title, response.data.content );