aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/themes/default/template/batch_manager_global.tpl14
1 files changed, 9 insertions, 5 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl
index 8189ef972..e63ffd5e5 100644
--- a/admin/themes/default/template/batch_manager_global.tpl
+++ b/admin/themes/default/template/batch_manager_global.tpl
@@ -166,6 +166,13 @@ $(document).ready(function() {
});
$("#selectAll").click(function () {
+ $("input[name=setSelected]").attr('checked', false);
+ selectPageThumbnails();
+ checkPermitAction();
+ return false;
+ });
+
+ function selectPageThumbnails() {
$(".thumbnails label").each(function() {
var wrap2 = $(this).children(".wrap2");
var checkbox = $(this).children("input[type=checkbox]");
@@ -173,11 +180,7 @@ $(document).ready(function() {
$(checkbox).attr('checked', true);
$(wrap2).addClass("thumbSelected");
});
-
- checkPermitAction();
-
- return false;
- });
+ }
$("#selectNone").click(function () {
$("input[name=setSelected]").attr('checked', false);
@@ -214,6 +217,7 @@ $(document).ready(function() {
});
$("#selectSet").click(function () {
+ selectPageThumbnails();
$("input[name=setSelected]").attr('checked', true);
checkPermitAction();
return false;