From a5afce8af0d04785ac98bbcdd3f873d19f7943db Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 12 Jan 2017 14:35:13 +0100 Subject: [PATCH] replace tabs by space for indentation --- admin/themes/default/js/batchManagerGlobal.js | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/admin/themes/default/js/batchManagerGlobal.js b/admin/themes/default/js/batchManagerGlobal.js index c9b2d6371..6d2a99bf7 100644 --- a/admin/themes/default/js/batchManagerGlobal.js +++ b/admin/themes/default/js/batchManagerGlobal.js @@ -278,32 +278,32 @@ jQuery('#applyAction').click(function(e) { continue; } - (function(ids) { - var thisBatchSize = ids.length; - queuedManager.add({ - type: 'POST', - url: 'ws.php?format=json', - data: { - method: "pwg.images.delete", - pwg_token: jQuery("input[name=pwg_token").val(), - image_id: ids.join(',') - }, - dataType: 'json', - success: function(data) { - todo += thisBatchSize; - var isOk = data.stat && "ok" == data.stat; - if (isOk && data.result != thisBatchSize) - /*TODO: user feedback only data.result images out of thisBatchSize were deleted*/; - /*TODO: user feedback if isError*/ - progressDelete(todo, progressBar_max, isOk); - }, - error: function(data) { - todo += thisBatchSize; - /*TODO: user feedback*/ - progressDelete(todo, progressBar_max, false); - } - }); - } )(image_ids); + (function(ids) { + var thisBatchSize = ids.length; + queuedManager.add({ + type: 'POST', + url: 'ws.php?format=json', + data: { + method: "pwg.images.delete", + pwg_token: jQuery("input[name=pwg_token").val(), + image_id: ids.join(',') + }, + dataType: 'json', + success: function(data) { + todo += thisBatchSize; + var isOk = data.stat && "ok" == data.stat; + if (isOk && data.result != thisBatchSize) + /*TODO: user feedback only data.result images out of thisBatchSize were deleted*/; + /*TODO: user feedback if isError*/ + progressDelete(todo, progressBar_max, isOk); + }, + error: function(data) { + todo += thisBatchSize; + /*TODO: user feedback*/ + progressDelete(todo, progressBar_max, false); + } + }); + } )(image_ids); image_ids = Array(); }