Privacy: fix styling on personal data tables.
Props melchoyce, allendav. Fixes #43909. Built from https://develop.svn.wordpress.org/trunk@43216 git-svn-id: http://core.svn.wordpress.org/trunk@43045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d9265e5c5
commit
12d7f2be78
|
@ -1115,11 +1115,23 @@ table.form-table td .updated p {
|
||||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy_requests tbody .has-request-results th {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.privacy_requests tbody .request-results th .notice {
|
||||||
|
margin: 0 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.privacy_requests tbody td {
|
.privacy_requests tbody td {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy_requests tbody .has-request-results td {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
.privacy_requests .status-request-confirmed th,
|
.privacy_requests .status-request-confirmed th,
|
||||||
.privacy_requests .status-request-confirmed td {
|
.privacy_requests .status-request-confirmed td {
|
||||||
background-color: #f7fcfe;
|
background-color: #f7fcfe;
|
||||||
|
@ -1132,16 +1144,8 @@ table.form-table td .updated p {
|
||||||
border-right-color: #d64d21;
|
border-right-color: #d64d21;
|
||||||
}
|
}
|
||||||
|
|
||||||
.privacy_requests .request-results .notice {
|
.privacy_requests .export_personal_data_failed a {
|
||||||
margin: -2px 0 0;
|
vertical-align: baseline;
|
||||||
}
|
|
||||||
|
|
||||||
.privacy_requests .request-results .notice p {
|
|
||||||
margin: 0.5em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.request-results td {
|
|
||||||
padding: 0 0 1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-label {
|
.status-label {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1115,11 +1115,23 @@ table.form-table td .updated p {
|
||||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy_requests tbody .has-request-results th {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.privacy_requests tbody .request-results th .notice {
|
||||||
|
margin: 0 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.privacy_requests tbody td {
|
.privacy_requests tbody td {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy_requests tbody .has-request-results td {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
.privacy_requests .status-request-confirmed th,
|
.privacy_requests .status-request-confirmed th,
|
||||||
.privacy_requests .status-request-confirmed td {
|
.privacy_requests .status-request-confirmed td {
|
||||||
background-color: #f7fcfe;
|
background-color: #f7fcfe;
|
||||||
|
@ -1132,16 +1144,8 @@ table.form-table td .updated p {
|
||||||
border-left-color: #d64d21;
|
border-left-color: #d64d21;
|
||||||
}
|
}
|
||||||
|
|
||||||
.privacy_requests .request-results .notice {
|
.privacy_requests .export_personal_data_failed a {
|
||||||
margin: -2px 0 0;
|
vertical-align: baseline;
|
||||||
}
|
|
||||||
|
|
||||||
.privacy_requests .request-results .notice p {
|
|
||||||
margin: 0.5em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.request-results td {
|
|
||||||
padding: 0 0 1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-label {
|
.status-label {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -31,13 +31,16 @@ jQuery( document ).ready( function( $ ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearResultsAfterRow( $requestRow ) {
|
function clearResultsAfterRow( $requestRow ) {
|
||||||
|
$requestRow.removeClass( 'has-request-results' );
|
||||||
|
|
||||||
if ( $requestRow.next().hasClass( 'request-results' ) ) {
|
if ( $requestRow.next().hasClass( 'request-results' ) ) {
|
||||||
$requestRow.next().remove();
|
$requestRow.next().remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function appendResultsAfterRow( $requestRow, classes, summaryMessage, additionalMessages ) {
|
function appendResultsAfterRow( $requestRow, classes, summaryMessage, additionalMessages ) {
|
||||||
var itemList = '';
|
var itemList = '',
|
||||||
|
resultRowClasses = 'request-results';
|
||||||
|
|
||||||
clearResultsAfterRow( $requestRow );
|
clearResultsAfterRow( $requestRow );
|
||||||
|
|
||||||
|
@ -48,8 +51,18 @@ jQuery( document ).ready( function( $ ) {
|
||||||
itemList = '<ul>' + itemList + '</ul>';
|
itemList = '<ul>' + itemList + '</ul>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$requestRow.addClass( 'has-request-results' );
|
||||||
|
|
||||||
|
if ( $requestRow.hasClass( 'status-request-confirmed' ) ) {
|
||||||
|
resultRowClasses = resultRowClasses + ' status-request-confirmed';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $requestRow.hasClass( 'status-request-failed' ) ) {
|
||||||
|
resultRowClasses = resultRowClasses + ' status-request-failed';
|
||||||
|
}
|
||||||
|
|
||||||
$requestRow.after( function() {
|
$requestRow.after( function() {
|
||||||
return '<tr class="request-results"><td colspan="5">' +
|
return '<tr class="' + resultRowClasses + '"><th colspan="5">' +
|
||||||
'<div class="notice inline notice-alt ' + classes + '">' +
|
'<div class="notice inline notice-alt ' + classes + '">' +
|
||||||
'<p>' + summaryMessage + '</p>' +
|
'<p>' + summaryMessage + '</p>' +
|
||||||
itemList +
|
itemList +
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
jQuery(document).ready(function(a){a("#link_rel").prop("readonly",!0),a("#linkxfndiv input").bind("click keyup",function(){var b=a("#me").is(":checked"),c="";a("input.valinp").each(function(){b?a(this).prop("disabled",!0).parent().addClass("disabled"):(a(this).removeAttr("disabled").parent().removeClass("disabled"),a(this).is(":checked")&&""!==a(this).val()&&(c+=a(this).val()+" "))}),a("#link_rel").val(b?"me":c.substr(0,c.length-1))})}),jQuery(document).ready(function(a){function b(a,b){a.children().hide(),a.children("."+b).show()}function c(a){a.next().hasClass("request-results")&&a.next().remove()}function d(b,d,e,f){var g="";c(b),f.length&&(a.each(f,function(a,b){g=g+"<li>"+b+"</li>"}),g="<ul>"+g+"</ul>"),b.after(function(){return'<tr class="request-results"><td colspan="5"><div class="notice inline notice-alt '+d+'"><p>'+e+"</p>"+g+"</div></td></tr>"})}var e=window.privacyToolsL10n||{};a(".export-personal-data-handle").click(function(f){function g(a){b(k,"export-personal-data-success"),"undefined"!=typeof a?window.location=a:p||h(e.noExportFile)}function h(a){b(k,"export-personal-data-failed"),a&&d(l,"notice-error",e.exportError,[a])}function i(b,c){a.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:b,id:m,page:c,security:n,sendAsEmail:p},method:"post"}).done(function(a){var d=a.data;return a.success?void(d.done?b<o?setTimeout(i(b+1,1)):g(d.url):setTimeout(i(b,c+1))):void h(a.data)}).fail(function(a,b,c){h(c)})}var j=a(this),k=j.parents(".export-personal-data"),l=j.parents("tr"),m=k.data("request-id"),n=k.data("nonce"),o=k.data("exporters-count"),p=!!k.data("send-as-email");f.preventDefault(),f.stopPropagation(),k.blur(),c(l),b(k,"export-personal-data-processing"),i(1,1)}),a(".remove-personal-data-handle").click(function(f){function g(){var a=e.noDataFound,c="notice-success";b(k,"remove-personal-data-idle"),!1===p?!1===q?a=e.noDataFound:(a=e.noneRemoved,c="notice-warning"):!1===q?a=e.foundAndRemoved:(a=e.someNotRemoved,c="notice-warning"),d(l,"notice-success",a,r)}function h(){b(k,"remove-personal-data-failed"),d(l,"notice-error",e.removalError,[])}function i(b,c){a.ajax({url:window.ajaxurl,data:{action:"wp-privacy-erase-personal-data",eraser:b,id:m,page:c,security:n},method:"post"}).done(function(a){var d=a.data;return a.success?(d.items_removed&&(p=p||d.items_removed),d.items_retained&&(q=q||d.items_retained),d.messages&&(r=r.concat(d.messages)),void(d.done?b<o?setTimeout(i(b+1,1)):g():setTimeout(i(b,c+1)))):void h()}).fail(function(){h()})}var j=a(this),k=j.parents(".remove-personal-data"),l=j.parents("tr"),m=k.data("request-id"),n=k.data("nonce"),o=k.data("erasers-count"),p=!1,q=!1,r=[];f.stopPropagation(),k.blur(),c(l),b(k,"remove-personal-data-processing"),i(1,1)})}),function(a){a(document).on("click",function(b){var c,d,e,f=a(b.target);if(f.is("button.privacy-text-copy")&&(c=f.parent().parent(),d=c.find("div.wp-suggested-text"),d.length||(d=c.find("div.policy-text")),d.length))try{window.getSelection().removeAllRanges(),e=document.createRange(),d.addClass("hide-privacy-policy-tutorial"),e.selectNodeContents(d[0]),window.getSelection().addRange(e),document.execCommand("copy"),d.removeClass("hide-privacy-policy-tutorial"),window.getSelection().removeAllRanges()}catch(g){}})}(jQuery);
|
jQuery(document).ready(function(a){a("#link_rel").prop("readonly",!0),a("#linkxfndiv input").bind("click keyup",function(){var b=a("#me").is(":checked"),c="";a("input.valinp").each(function(){b?a(this).prop("disabled",!0).parent().addClass("disabled"):(a(this).removeAttr("disabled").parent().removeClass("disabled"),a(this).is(":checked")&&""!==a(this).val()&&(c+=a(this).val()+" "))}),a("#link_rel").val(b?"me":c.substr(0,c.length-1))})}),jQuery(document).ready(function(a){function b(a,b){a.children().hide(),a.children("."+b).show()}function c(a){a.removeClass("has-request-results"),a.next().hasClass("request-results")&&a.next().remove()}function d(b,d,e,f){var g="",h="request-results";c(b),f.length&&(a.each(f,function(a,b){g=g+"<li>"+b+"</li>"}),g="<ul>"+g+"</ul>"),b.addClass("has-request-results"),b.hasClass("status-request-confirmed")&&(h+=" status-request-confirmed"),b.hasClass("status-request-failed")&&(h+=" status-request-failed"),b.after(function(){return'<tr class="'+h+'"><th colspan="5"><div class="notice inline notice-alt '+d+'"><p>'+e+"</p>"+g+"</div></td></tr>"})}var e=window.privacyToolsL10n||{};a(".export-personal-data-handle").click(function(f){function g(a){b(k,"export-personal-data-success"),"undefined"!=typeof a?window.location=a:p||h(e.noExportFile)}function h(a){b(k,"export-personal-data-failed"),a&&d(l,"notice-error",e.exportError,[a])}function i(b,c){a.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:b,id:m,page:c,security:n,sendAsEmail:p},method:"post"}).done(function(a){var d=a.data;return a.success?void(d.done?b<o?setTimeout(i(b+1,1)):g(d.url):setTimeout(i(b,c+1))):void h(a.data)}).fail(function(a,b,c){h(c)})}var j=a(this),k=j.parents(".export-personal-data"),l=j.parents("tr"),m=k.data("request-id"),n=k.data("nonce"),o=k.data("exporters-count"),p=!!k.data("send-as-email");f.preventDefault(),f.stopPropagation(),k.blur(),c(l),b(k,"export-personal-data-processing"),i(1,1)}),a(".remove-personal-data-handle").click(function(f){function g(){var a=e.noDataFound,c="notice-success";b(k,"remove-personal-data-idle"),!1===p?!1===q?a=e.noDataFound:(a=e.noneRemoved,c="notice-warning"):!1===q?a=e.foundAndRemoved:(a=e.someNotRemoved,c="notice-warning"),d(l,"notice-success",a,r)}function h(){b(k,"remove-personal-data-failed"),d(l,"notice-error",e.removalError,[])}function i(b,c){a.ajax({url:window.ajaxurl,data:{action:"wp-privacy-erase-personal-data",eraser:b,id:m,page:c,security:n},method:"post"}).done(function(a){var d=a.data;return a.success?(d.items_removed&&(p=p||d.items_removed),d.items_retained&&(q=q||d.items_retained),d.messages&&(r=r.concat(d.messages)),void(d.done?b<o?setTimeout(i(b+1,1)):g():setTimeout(i(b,c+1)))):void h()}).fail(function(){h()})}var j=a(this),k=j.parents(".remove-personal-data"),l=j.parents("tr"),m=k.data("request-id"),n=k.data("nonce"),o=k.data("erasers-count"),p=!1,q=!1,r=[];f.stopPropagation(),k.blur(),c(l),b(k,"remove-personal-data-processing"),i(1,1)})}),function(a){a(document).on("click",function(b){var c,d,e,f=a(b.target);if(f.is("button.privacy-text-copy")&&(c=f.parent().parent(),d=c.find("div.wp-suggested-text"),d.length||(d=c.find("div.policy-text")),d.length))try{window.getSelection().removeAllRanges(),e=document.createRange(),d.addClass("hide-privacy-policy-tutorial"),e.selectNodeContents(d[0]),window.getSelection().addRange(e),document.execCommand("copy"),d.removeClass("hide-privacy-policy-tutorial"),window.getSelection().removeAllRanges()}catch(g){}})}(jQuery);
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-43212';
|
$wp_version = '5.0-alpha-43216';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue