Author Topic: [RESOLVED] Calendar and Tasklist entry javascript errors  (Read 4874 times)

Offline jmanko

  • Jr. Member
  • **
  • Posts: 11
[RESOLVED] Calendar and Tasklist entry javascript errors
« 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
« Last Edit: February 14, 2015, 09:35:05 PM by jmanko »

Offline jmanko

  • Jr. Member
  • **
  • Posts: 11
Re: Calendar and Tasklist entry javascript errors
« Reply #1 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);

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: [RESOLVED] Calendar and Tasklist entry javascript errors
« Reply #2 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.

Offline jmanko

  • Jr. Member
  • **
  • Posts: 11
Re: [RESOLVED] Calendar and Tasklist entry javascript errors
« Reply #3 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