gutenberg
3 years ago
consent-mapping.js
2 years ago
cookiebot-admin-script.js
2 years ago
debug-page.js
3 years ago
jquery.tipTip.js
3 years ago
multiple-page.js
3 years ago
network-settings-page.js
3 years ago
prior-consent-settings.js
3 years ago
settings-page.js
2 years ago
support-page.js
3 years ago
consent-mapping.js
11 lines
| 1 | function resetConsentMapping() { |
| 2 | if ( confirm( 'Are you sure you want to reset to default consent mapping?' ) ) { |
| 3 | jQuery( '.cb-settings__consent__mapping-table input[type=checkbox]' ).each( function () { |
| 4 | if ( !jQuery( this ).prop('disabled') ) { |
| 5 | jQuery( this ).prop('checked', jQuery( this ).data( 'default-value' ) ); |
| 6 | } |
| 7 | } ) |
| 8 | jQuery('p.submit #submit').addClass('enabled'); |
| 9 | } |
| 10 | return false |
| 11 | } |