]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix share for users with a point within their name
authorGeorg Ehrke <dev@georgswebsite.de>
Sat, 26 May 2012 13:23:46 +0000 (15:23 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sat, 26 May 2012 13:23:46 +0000 (15:23 +0200)
apps/calendar/js/calendar.js

index 243ce1798bc5d0889de4e537901810252bc2b5a9..e27fe49c54f06082be282cded18f3ecb03f80134 100644 (file)
@@ -506,10 +506,11 @@ Calendar={
                        },
                        dropdown:function(userid, calid){
                                $('.calendar_share_dropdown').remove();
-                               $('<div class="calendar_share_dropdown"></div>').appendTo('#'+userid+'_'+calid);
+                               var element = document.getElementById(userid+'_'+calid);
+                               $('<div class="calendar_share_dropdown"></div>').appendTo(element);
                                $.get(OC.filePath('calendar', 'ajax/share', 'dropdown.php') + '?calid=' + calid, function(data){
-                                       $('#'+userid+'_'+calid+' > .calendar_share_dropdown').html(data);
-                                       $('#'+userid+'_'+calid+' > .calendar_share_dropdown').show('blind');
+                                       $('.calendar_share_dropdown').html(data);
+                                       $('.calendar_share_dropdown').show('blind');
                                        $('#share_user').chosen();
                                        $('#share_group').chosen();
                                });