fix share for users with a point within their name

This commit is contained in:
Georg Ehrke 2012-05-26 15:23:46 +02:00
parent 85dbfc8165
commit a1c9191006
1 changed files with 4 additions and 3 deletions

View 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();
});