aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-02-02 14:43:06 +0000
committerplegall <plg@piwigo.org>2011-02-02 14:43:06 +0000
commit0199e0cbd0b93f91002cf5c32f4ceb79ac9caa60 (patch)
tree37a50f811904e83ec5ad5df2ace793b48bc2917f
parent7b42c2c1ad5931f0ce64b358106a17de7bd141f1 (diff)
bug 2177 fixed: automatically select thumbnails on current page when selecting
the whole set. git-svn-id: http://piwigo.org/svn/trunk@9064 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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;