Roundcube Community Forum

 

[RESOLVED] Calendar and Tasklist entry javascript errors

Started by jmanko, February 14, 2015, 08:04:33 PM

Previous topic - Next topic

jmanko

Anyone have problems with adding calendar events of task items?  Clicking on the add button don't work for me.

Calendar javascript errors:
TypeError: $(...).data(...) is undefined
https://mysite/plugins/calendar/calendar_ui.js?s=1423953852
Line 2808

Error: no such method 'select' for tabs widget instance
https://mysite/program/js/jquery.min.js?s=1423403008
Line 34

jmanko

RC 1.1 is using jQuery v2.1.3.  I believe the Calendar jsvsscript contains both a typo and invalid code not compatible with that version of jQuery.

So, for Calendar (both v1.0.16 and dev-master), make the the following changes

calendar_ui.js
line 766, from:
$('#eventtabs').tabs('select', 0);

to:
$('#eventtabs').tabs('option', 0);

Line 2809, from:
$(this).data('autocomplete')._renderItem = function(ul, item) {

to:
$(this).attr('autocomplete')._renderItem = function(ul, item) {

For Tasklist
tasklist.js
line 1312, from:
$('#taskedit').tabs('select', 0);

to:
$('#taskedit').tabs('option', 0);

alec