PluginProbe
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.7.5
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.7.5
4.7.4 4.7.5 4.7.3 4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 All 95 releases
cookiebot / assets / js / backend / consent-mapping.js

consent-mapping.js in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 4.7.5, at assets/js/backend/consent-mapping.js

23 lines 957 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 'use strict';
2 (window => {
3 jQuery('#cb-consent-api-reset-defaults').on('click',resetConsentMapping);
4 function resetConsentMapping() {
5 if ( confirm( 'Are you sure you want to reset to default consent mapping?' ) ) {
6 const resetButton = jQuery(this);
7 if(resetButton.hasClass('uc-consent')){
8 const categorySelectors = jQuery('.cb-category-selectors');
9 categorySelectors.each(function(){
10 const defaultCategory = jQuery(this).attr('data-default');
11 jQuery(this).val(defaultCategory).change();
12 });
13 } else {
14 jQuery('.cb-settings__consent__mapping-table input[type=checkbox]').each(function () {
15 if (!jQuery(this).prop('disabled')) {
16 jQuery(this).prop('checked', jQuery(this).data('default-value'));
17 }
18 })
19 }
20 jQuery('p.submit #submit').addClass('enabled');
21 }
22 }
23 })(window);