summaryrefslogtreecommitdiffstats
path: root/core/js/multiselect.js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-06-29 16:29:58 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-01 11:36:31 -0400
commit949cab7ea17ed7e12b27886d46f45e541b138850 (patch)
tree0a593b7b356e8a517301d7e0052b8fe26784102d /core/js/multiselect.js
parent5121c262e2c900de743637d206b18c2aeb43c25d (diff)
downloadnextcloud-server-949cab7ea17ed7e12b27886d46f45e541b138850.tar.gz
nextcloud-server-949cab7ea17ed7e12b27886d46f45e541b138850.zip
Add new group to other user's group select forms
Diffstat (limited to 'core/js/multiselect.js')
-rw-r--r--core/js/multiselect.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/js/multiselect.js b/core/js/multiselect.js
index db5afa637c9..ba89c1bb563 100644
--- a/core/js/multiselect.js
+++ b/core/js/multiselect.js
@@ -35,6 +35,7 @@
}
button.click(function(event){
+
var button=$(this);
if(button.parent().children('ul').length>0){
button.parent().children('ul').slideUp(400,function(){
@@ -136,11 +137,11 @@
var option=$('<option selected="selected"/>');
option.attr('value',$(this).val());
option.text($(this).val());
- select.append(options);
+ select.append(option);
li.prev().children('input').trigger('click');
button.parent().data('preventHide',false);
if(settings.createCallback){
- settings.createCallback();
+ settings.createCallback($(this).val());
}
}
});