Skip to content
Snippets Groups Projects
Commit 872d301a authored by Robin Appelman's avatar Robin Appelman
Browse files

fix inconsitent behaviour when trying to remove yourself from the admin group

parent 0e428ec5
Branches
No related tags found
No related merge requests found
......@@ -61,22 +61,22 @@
input.change(function(){
var groupname=$(this).next().text();
if($(this).is(':checked')){
settings.checked.push(groupname);
if(settings.oncheck){
if(settings.oncheck(groupname)===false){
$(this).attr('checked', false);
return;
}
}
settings.checked.push(groupname);
}else{
var index=settings.checked.indexOf(groupname);
settings.checked.splice(index,1);
if(settings.onuncheck){
if(settings.onuncheck(groupname)===false){
$(this).attr('checked',true);
return;
}
}
settings.checked.splice(index,1);
}
var oldWidth=button.width();
if(settings.checked.length>0){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment