Fix javascript errors about invalid method calls

This commit is contained in:
Thomas Bruederli 2013-03-06 15:23:31 +01:00
parent 2eedbbf0f4
commit e6c0f222d9

View file

@ -2488,8 +2488,8 @@ function rcube_calendar_ui(settings)
widget.children().each(function(){
li = $(this);
html = li.children().first().html().replace(/\s+\(.+\)$/, '').replace(amregex, '0:$1').replace(pmregex, '1:$1');
if (html == val)
menu.activate($.Event({ type:'keypress' }), li);
if (html.indexOf(val) == 0)
menu._scrollIntoView(li);
});
};