mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user