1 line
962 B
JavaScript
1 line
962 B
JavaScript
jQuery(document).ready(function(e){if("undefined"!=typeof wpconsentPrivacy&&!e("#cookie-policy-page-row").length){var o=e(".tools-privacy-policy-page"),p=e('.tools-privacy-policy-page select[name="page_for_privacy_policy"]');if(o.length&&p.length){var i=e('<tr id="cookie-policy-page-row">').append(e('<th scope="row">').append(e('<label for="page_for_cookie_policy">').text(wpconsentPrivacy.labels.cookiePolicyPage)),e("<td>").append(e('<form method="post">').append(e('<input type="hidden" name="action" value="set-cookie-policy-page">'),p.clone().attr({name:"page_for_cookie_policy",id:"page_for_cookie_policy"}).val(wpconsentPrivacy.selectedPageId||""),e('<input type="hidden" name="_wpnonce">').val(wpconsentPrivacy.nonce)," ",e('<input type="submit" name="submit" id="set-cookie-policy-page" class="button button-primary">').val(wpconsentPrivacy.labels.useThisPage)),e('<p class="description">').html(wpconsentPrivacy.labels.description)));o.append(i)}}}); |