diff --git a/lib/base/front/front.class.php b/lib/base/front/front.class.php
index a81a355823..15317426a8 100644
--- a/lib/base/front/front.class.php
+++ b/lib/base/front/front.class.php
@@ -588,10 +588,12 @@ function selectAll(checker, scope, type)
{
if(type == 'button')
{
+ var check = $(checker).data('check');
$('#' + scope + ' input').each(function()
{
- $(this).prop("checked", true)
+ $(this).prop("checked", check)
});
+ $(checker).data('check', check == true ? false :true);
}
else if(type == 'checkbox')
{
@@ -605,10 +607,12 @@ function selectAll(checker, scope, type)
{
if(type == 'button')
{
+ var check = $(checker).data('check');
$('input:checkbox').each(function()
{
- $(this).prop("checked", true)
+ $(this).prop("checked", check)
});
+ $(checker).data('check', check == true ? false :true);
}
else if(type == 'checkbox')
{
@@ -628,7 +632,7 @@ EOT;
}
elseif($type == 'button')
{
- $string .= "";
+ $string .= "";
}
return $string;