Skip to content

Commit

Permalink
bug 2177 fixed: automatically select thumbnails on current page when …
Browse files Browse the repository at this point in the history
…selecting

the whole set.


git-svn-id: http://piwigo.org/svn/trunk@9064 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Feb 2, 2011
1 parent 7b42c2c commit 0199e0c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions admin/themes/default/template/batch_manager_global.tpl
Expand Up @@ -166,18 +166,21 @@ $(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]");
$(checkbox).attr('checked', true);
$(wrap2).addClass("thumbSelected");
});

checkPermitAction();

return false;
});
}

$("#selectNone").click(function () {
$("input[name=setSelected]").attr('checked', false);
Expand Down Expand Up @@ -214,6 +217,7 @@ $(document).ready(function() {
});

$("#selectSet").click(function () {
selectPageThumbnails();
$("input[name=setSelected]").attr('checked', true);
checkPermitAction();
return false;
Expand Down

0 comments on commit 0199e0c

Please sign in to comment.