Этот коммит содержится в:
2015-06-09 16:11:49 +03:00
родитель 0153b3b1d0
Коммит 16636f3a27
8 изменённых файлов: 94 добавлений и 4 удалений

Просмотреть файл

@@ -1,5 +1,6 @@
jQuery(document).ready(function($) {
var batch_progress = function (percent){
$(".batch-percent").html(percent + "%");
return $(".batch-progress > span").animate({ width: percent + "%" }, 600);
};

2
js/batch.min.js поставляемый
Просмотреть файл

@@ -1 +1 @@
jQuery(document).ready(function(a){function b(){a.post(ajaxurl+"?action=batch_operations&id="+batch_id,function(d){"finish"==d["do"]?(c(d.percent),a(".batch-message").html(d.message).delay(1500).queue(function(){a(location).attr("href",successful_page),a(this).dequeue()})):(a(".batch-message").html(d.message),c(d.percent),b())})}var c=function(b){return a(".batch-progress > span").animate({width:b+"%"},600)};b()});
jQuery(document).ready(function(a){function b(){a.post(ajaxurl+"?action=batch_operations&id="+batch_id,function(d){"finish"==d["do"]?(c(d.percent),a(".batch-message").html(d.message).delay(1500).queue(function(){a(location).attr("href",successful_page),a(this).dequeue()})):(a(".batch-message").html(d.message),c(d.percent),b())})}var c=function(b){return a(".batch-percent").html(b+"%"),a(".batch-progress > span").animate({width:b+"%"},600)};b()});