Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: jmanko on February 14, 2015, 08:04:33 PM

Title: [RESOLVED] Calendar and Tasklist entry javascript errors
Post by: jmanko on February 14, 2015, 08:04:33 PM
Anyone have problems with adding calendar events of task items?  Clicking on the add button don't work for me.

Calendar javascript errors:
Code: [Select]
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
Title: Re: Calendar and Tasklist entry javascript errors
Post by: jmanko on February 14, 2015, 09:34:30 PM
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:
Code: [Select]
$('#eventtabs').tabs('select', 0);
to:
Code: [Select]
$('#eventtabs').tabs('option', 0);
Line 2809, from:
Code: [Select]
$(this).data('autocomplete')._renderItem = function(ul, item) {
to:
Code: [Select]
$(this).attr('autocomplete')._renderItem = function(ul, item) {
For Tasklist
tasklist.js
line 1312, from:
Code: [Select]
$('#taskedit').tabs('select', 0);
to:
Code: [Select]
$('#taskedit').tabs('option', 0);
Title: Re: [RESOLVED] Calendar and Tasklist entry javascript errors
Post by: alec on February 15, 2015, 07:14:35 AM
These were fixed long time ago in git http://git.kolab.org/roundcubemail-plugins-kolab/commit/plugins/calendar/calendar_ui.js?id=efecba6675e09abab29ce531f284d055566db801. So, for Roundcube 1.1 you should use git-master version of these plugins.
Title: Re: [RESOLVED] Calendar and Tasklist entry javascript errors
Post by: jmanko on February 15, 2015, 05:48:27 PM
These were fixed long time ago in git http://git.kolab.org/roundcubemail-plugins-kolab/commit/plugins/calendar/calendar_ui.js?id=efecba6675e09abab29ce531f284d055566db801. So, for Roundcube 1.1 you should use git-master version of these plugins.

Hi Alec.  I would have tried those if they were listed as valid roundcube/composer versions:

http://plugins.roundcube.net/packages/kolab/calendar
http://plugins.roundcube.net/packages/kolab/tasklist