You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
765 B
JavaScript

!function(){"use strict";var r,n={n:function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,{a:o}),o},d:function(r,o){for(var t in o)n.o(o,t)&&!n.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:o[t]})},o:function(r,n){return Object.prototype.hasOwnProperty.call(r,n)}},o=jQuery;(r=n.n(o)())((function(){r(".rank-math-rollback-form").on("submit",(function(){if(!confirm(rankMath.rollbackConfirm.replace("%s",r("#rm_rollback_version").val())))return!1;r("#rm-rollback-button").prop("disabled",!0),r(".rollback-loading-indicator").removeClass("hidden")}));var n=r("#rm-rollback-button");r("#rm_rollback_version").on("change",(function(){n.text(n.data("buttonlabel").replace("%s",r(this).val()))})).trigger("change")}))}();