aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-15 00:49:48 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-15 00:50:01 +0100
commit872d301af3a69c7dc4493cf335638f66affabf24 (patch)
treecb069da2e5e6b84a6713079d3ed8b8186eff80a2 /core
parent0e428ec595777ef5f70b408763ccef7be340799b (diff)
downloadnextcloud-server-872d301af3a69c7dc4493cf335638f66affabf24.tar.gz
nextcloud-server-872d301af3a69c7dc4493cf335638f66affabf24.zip
fix inconsitent behaviour when trying to remove yourself from the admin group
Diffstat (limited to 'core')
-rw-r--r--core/js/multiselect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/multiselect.js b/core/js/multiselect.js
index 610e9193bb7..96fc09a0759 100644
--- a/core/js/multiselect.js
+++ b/core/js/multiselect.js
@@ -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){