1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-12 21:45:11 +02:00

jQuery e-check-all and e-uncheck-all selectors added.

This commit is contained in:
CaMer0n
2012-06-17 11:52:10 +00:00
parent df2d4f4c5b
commit e16db9411a
5 changed files with 45 additions and 16 deletions

View File

@@ -157,8 +157,19 @@ $(document).ready(function()
}).disableSelection();
// Check ALl Button
$("#e-check-all").click(function(){
$("input[type=\"checkbox\"]").attr("checked", "checked");
});
// Check-All
// Uncheck all button.
$("#e-uncheck-all").click(function(){
$("input[type=\"checkbox\"]").removeAttr("checked");
});
// Check-All checkbox toggle
$("input.toggle-all").click(function(evt){
if($(this).is(":checked")){
$("input[type=\"checkbox\"].checkbox").attr("checked", "checked");