fact_check with Ray's permission check.

needs Ray's new css
This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-04-05 17:41:43 +08:00
1 parent 1a6242edbd
commit 01bda515a6
4 files changed
+35 -11

No files matched your search

Binary file not shown.
@@ -1,12 +1,14 @@
$('.check[checked="checked"]').parents(".checkbox").addClass("checked")
$(".checkbox").click(function(){
if($(this).children(".check").attr("checked")){
// uncheck
$(document).ready(function() {
$('.check[checked="checked"]').parents(".checkbox").addClass("checked");
$(".checkbox").click(function(){
if($(this).children(".check").attr("checked")){
// uncheck
$(this).children(".check").attr('checked', false);
$(this).removeClass("checked");
}else{
// check
$(this).children(".check").attr({checked: "checked"});
$(this).addClass("checked");
}
}else{
// check
$(this).children(".check").attr({checked: "checked"});
$(this).addClass("checked");
}
});
});