Coding Standards: Fix JSHint issues in [47246].
See #44264. Built from https://develop.svn.wordpress.org/trunk@47248 git-svn-id: http://core.svn.wordpress.org/trunk@47048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
13922a3210
commit
f8f24b49e6
|
@ -59,7 +59,7 @@ jQuery( document ).ready( function( $ ) {
|
||||||
var $this = $( this ),
|
var $this = $( this ),
|
||||||
$action = $this.parents( '.export-personal-data' ),
|
$action = $this.parents( '.export-personal-data' ),
|
||||||
$requestRow = $this.parents( 'tr' ),
|
$requestRow = $this.parents( 'tr' ),
|
||||||
$progress = $requestRow.find( '.export-progress' );
|
$progress = $requestRow.find( '.export-progress' ),
|
||||||
requestID = $action.data( 'request-id' ),
|
requestID = $action.data( 'request-id' ),
|
||||||
nonce = $action.data( 'nonce' ),
|
nonce = $action.data( 'nonce' ),
|
||||||
exportersCount = $action.data( 'exporters-count' ),
|
exportersCount = $action.data( 'exporters-count' ),
|
||||||
|
@ -150,7 +150,7 @@ jQuery( document ).ready( function( $ ) {
|
||||||
var $this = $( this ),
|
var $this = $( this ),
|
||||||
$action = $this.parents( '.remove-personal-data' ),
|
$action = $this.parents( '.remove-personal-data' ),
|
||||||
$requestRow = $this.parents( 'tr' ),
|
$requestRow = $this.parents( 'tr' ),
|
||||||
$progress = $requestRow.find( '.erasure-progress' );
|
$progress = $requestRow.find( '.erasure-progress' ),
|
||||||
requestID = $action.data( 'request-id' ),
|
requestID = $action.data( 'request-id' ),
|
||||||
nonce = $action.data( 'nonce' ),
|
nonce = $action.data( 'nonce' ),
|
||||||
erasersCount = $action.data( 'erasers-count' ),
|
erasersCount = $action.data( 'erasers-count' ),
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/*! This file is auto-generated */
|
/*! This file is auto-generated */
|
||||||
jQuery(document).ready(function(u){var l=window.privacyToolsL10n||{};function p(e,t){e.children().addClass("hidden"),e.children("."+t).removeClass("hidden")}function m(e){e.removeClass("has-request-results"),e.next().hasClass("request-results")&&e.next().remove()}function v(e,t,a,s){var n="",o="request-results";m(e),s.length&&(u.each(s,function(e,t){n=n+"<li>"+t+"</li>"}),n="<ul>"+n+"</ul>"),e.addClass("has-request-results"),e.hasClass("status-request-confirmed")&&(o+=" status-request-confirmed"),e.hasClass("status-request-failed")&&(o+=" status-request-failed"),e.after(function(){return'<tr class="'+o+'"><th colspan="5"><div class="notice inline notice-alt '+t+'"><p>'+a+"</p>"+n+"</div></td></tr>"})}u(".export-personal-data-handle").click(function(e){var o=u(this),r=o.parents(".export-personal-data"),i=o.parents("tr"),s=i.find(".export-progress");function d(e){p(r,"export-personal-data-failed"),e&&v(i,"notice-error",l.exportError,[e])}function c(e){var t=0<exportersCount?e/exportersCount:0,a=Math.round(100*t).toString()+"%";s.html(a)}requestID=r.data("request-id"),nonce=r.data("nonce"),exportersCount=r.data("exporters-count"),sendAsEmail=!!r.data("send-as-email"),e.preventDefault(),e.stopPropagation(),r.blur(),m(i),c(0),p(r,"export-personal-data-processing"),function a(s,n){u.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:s,id:requestID,page:n,security:nonce,sendAsEmail:sendAsEmail},method:"post"}).done(function(e){var t=e.data;e.success?t.done?s<exportersCount?(c(s),setTimeout(a(s+1,1))):function(e){var t=l.emailSent;p(r,"export-personal-data-success"),v(i,"notice-success",t,[]),o.hide(),void 0!==e?window.location=e:sendAsEmail||d(l.noExportFile)}(t.url):setTimeout(a(s,n+1)):d(e.data)}).fail(function(e,t,a){d(a)})}(1,1)}),u(".remove-personal-data-handle").click(function(e){var o=u(this),r=o.parents(".remove-personal-data"),i=o.parents("tr"),s=i.find(".erasure-progress");function d(){p(r,"remove-personal-data-failed"),v(i,"notice-error",l.removalError,[])}function c(e){var t=0<erasersCount?e/erasersCount:0,a=Math.round(100*t).toString()+"%";s.html(a)}requestID=r.data("request-id"),nonce=r.data("nonce"),erasersCount=r.data("erasers-count"),hasRemoved=!1,hasRetained=!1,messages=[],e.stopPropagation(),r.blur(),m(i),c(0),p(r,"remove-personal-data-processing"),function a(s,n){u.ajax({url:window.ajaxurl,data:{action:"wp-privacy-erase-personal-data",eraser:s,id:requestID,page:n,security:nonce},method:"post"}).done(function(e){var t=e.data;e.success?(t.items_removed&&(hasRemoved=hasRemoved||t.items_removed),t.items_retained&&(hasRetained=hasRetained||t.items_retained),t.messages&&(messages=messages.concat(t.messages)),t.done?s<erasersCount?(c(s),setTimeout(a(s+1,1))):function(){var e=l.noDataFound,t="notice-success";p(r,"remove-personal-data-success"),!1===hasRemoved?!1===hasRetained?e=l.noDataFound:(e=l.noneRemoved,t="notice-warning"):!1===hasRetained?e=l.foundAndRemoved:(e=l.someNotRemoved,t="notice-warning"),v(i,t,e,messages),o.hide()}():setTimeout(a(s,n+1))):d()}).fail(function(){d()})}(1,1)}),u(document).on("click",function(e){var t,a,s,n=u(e.target);if(n.is("button.privacy-text-copy")&&((a=(t=n.parent().parent()).find("div.wp-suggested-text")).length||(a=t.find("div.policy-text")),a.length))try{window.getSelection().removeAllRanges(),s=document.createRange(),a.addClass("hide-privacy-policy-tutorial"),s.selectNodeContents(a[0]),window.getSelection().addRange(s),document.execCommand("copy"),a.removeClass("hide-privacy-policy-tutorial"),window.getSelection().removeAllRanges()}catch(e){}})});
|
jQuery(document).ready(function(f){var h=window.privacyToolsL10n||{};function g(e,t){e.children().addClass("hidden"),e.children("."+t).removeClass("hidden")}function x(e){e.removeClass("has-request-results"),e.next().hasClass("request-results")&&e.next().remove()}function w(e,t,a,n){var o="",r="request-results";x(e),n.length&&(f.each(n,function(e,t){o=o+"<li>"+t+"</li>"}),o="<ul>"+o+"</ul>"),e.addClass("has-request-results"),e.hasClass("status-request-confirmed")&&(r+=" status-request-confirmed"),e.hasClass("status-request-failed")&&(r+=" status-request-failed"),e.after(function(){return'<tr class="'+r+'"><th colspan="5"><div class="notice inline notice-alt '+t+'"><p>'+a+"</p>"+o+"</div></td></tr>"})}f(".export-personal-data-handle").click(function(e){var r=f(this),s=r.parents(".export-personal-data"),i=r.parents("tr"),n=i.find(".export-progress"),t=s.data("request-id"),d=s.data("nonce"),c=s.data("exporters-count"),l=!!s.data("send-as-email");function u(e){g(s,"export-personal-data-failed"),e&&w(i,"notice-error",h.exportError,[e])}function p(e){var t=0<c?e/c:0,a=Math.round(100*t).toString()+"%";n.html(a)}e.preventDefault(),e.stopPropagation(),s.blur(),x(i),p(0),g(s,"export-personal-data-processing"),function a(n,o){f.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:n,id:t,page:o,security:d,sendAsEmail:l},method:"post"}).done(function(e){var t=e.data;e.success?t.done?n<c?(p(n),setTimeout(a(n+1,1))):function(e){var t=h.emailSent;g(s,"export-personal-data-success"),w(i,"notice-success",t,[]),r.hide(),void 0!==e?window.location=e:l||u(h.noExportFile)}(t.url):setTimeout(a(n,o+1)):u(e.data)}).fail(function(e,t,a){u(a)})}(1,1)}),f(".remove-personal-data-handle").click(function(e){var r=f(this),s=r.parents(".remove-personal-data"),i=r.parents("tr"),n=i.find(".erasure-progress"),t=s.data("request-id"),d=s.data("nonce"),c=s.data("erasers-count"),l=!1,u=!1,p=[];function m(){g(s,"remove-personal-data-failed"),w(i,"notice-error",h.removalError,[])}function v(e){var t=0<c?e/c:0,a=Math.round(100*t).toString()+"%";n.html(a)}e.stopPropagation(),s.blur(),x(i),v(0),g(s,"remove-personal-data-processing"),function a(n,o){f.ajax({url:window.ajaxurl,data:{action:"wp-privacy-erase-personal-data",eraser:n,id:t,page:o,security:d},method:"post"}).done(function(e){var t=e.data;e.success?(t.items_removed&&(l=l||t.items_removed),t.items_retained&&(u=u||t.items_retained),t.messages&&(p=p.concat(t.messages)),t.done?n<c?(v(n),setTimeout(a(n+1,1))):function(){var e=h.noDataFound,t="notice-success";g(s,"remove-personal-data-success"),!1===l?!1===u?e=h.noDataFound:(e=h.noneRemoved,t="notice-warning"):!1===u?e=h.foundAndRemoved:(e=h.someNotRemoved,t="notice-warning"),w(i,t,e,p),r.hide()}():setTimeout(a(n,o+1))):m()}).fail(function(){m()})}(1,1)}),f(document).on("click",function(e){var t,a,n,o=f(e.target);if(o.is("button.privacy-text-copy")&&((a=(t=o.parent().parent()).find("div.wp-suggested-text")).length||(a=t.find("div.policy-text")),a.length))try{window.getSelection().removeAllRanges(),n=document.createRange(),a.addClass("hide-privacy-policy-tutorial"),n.selectNodeContents(a[0]),window.getSelection().addRange(n),document.execCommand("copy"),a.removeClass("hide-privacy-policy-tutorial"),window.getSelection().removeAllRanges()}catch(e){}})});
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-47247';
|
$wp_version = '5.4-alpha-47248';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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