diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/js/calendar.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index 243ce1798bc..e27fe49c54f 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -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(); }); |