Widget:SandboxNew: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 316: | Line 316: | ||
} else { | } else { | ||
$("[name=MainCat]").each( function() { | $("[name=MainCat]").each( function() { | ||
$(this).attr('checked', | $(this).attr('checked', false); | ||
$("#SelectAll").html("Select All Main Categories"); | $("#SelectAll").html("Select All Main Categories"); | ||
}); | }); | ||
} | } | ||
}); | }); | ||
$("#UnselectAll").click(function() { | $("#UnselectAll").click(function() { | ||
if($("#UnselectAll").html() === "Select All Sub Categories"){ | if($("#UnselectAll").html() === "Select All Sub Categories"){ | ||
Line 329: | Line 330: | ||
} else { | } else { | ||
$("[name=SubCat]").each( function() { | $("[name=SubCat]").each( function() { | ||
$(this).attr('checked', | $(this).attr('checked', false); | ||
$("#SelectAll").html("Select All Sub Categories"); | $("#SelectAll").html("Select All Sub Categories"); | ||
}); | }); |