This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-04-05 07:06:01 +00:00
|
|
|
$(document).ready(function() {
|
2012-04-26 08:13:21 +00:00
|
|
|
permissionCheckbox();
|
|
|
|
});
|
|
|
|
function permissionCheckbox(){
|
2012-04-06 09:46:50 +00:00
|
|
|
$('.check[checked="checked"]').parents(".checkbox").addClass("checked")
|
2012-04-05 07:06:01 +00:00
|
|
|
$(".checkbox").click(function(){
|
|
|
|
if($(this).children(".check").attr("checked")){
|
|
|
|
// uncheck
|
2012-04-06 09:46:50 +00:00
|
|
|
$(this).children(".check").attr('checked', false);
|
|
|
|
$(this).removeClass("checked");
|
2012-04-05 07:06:01 +00:00
|
|
|
}else{
|
|
|
|
// check
|
|
|
|
$(this).children(".check").attr({checked: "checked"});
|
|
|
|
$(this).addClass("checked");
|
|
|
|
}
|
|
|
|
});
|
2012-04-06 09:46:50 +00:00
|
|
|
$(".checkbox").popover({
|
|
|
|
trigger: 'hover',
|
|
|
|
placement: 'bottom',
|
|
|
|
delay: { show: 100, hide: 300 },
|
|
|
|
});
|
2012-04-26 08:13:21 +00:00
|
|
|
};
|