[Tickets #10485] Sharing Calendars with Standard-Settings doesn't work
bugs at horde.org
bugs at horde.org
Mon Sep 5 15:23:27 UTC 2011
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: http://bugs.horde.org/ticket/10485
------------------------------------------------------------------------------
Ticket | 10485
Erstellt Von | michael.groene at zel.uni-hannover.de
Zusammenfassung | Sharing Calendars with Standard-Settings doesn't work
Warteschlange | Kronolith
Version | 3.0.9
Typ | Bug
Status | Unconfirmed
Priorität | 1. Low
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
michael.groene at zel.uni-hannover.de (2011-09-05 15:23) hat geschrieben:
When trying to share a calendar with Standard-Rights Opera and Firefox
throw javascript-errors, sharing the ressource will fail (extended
rights are working).
Errors are:
Fehler: $("kronolithC" + type + "PGshow_" + group) is null
Quelldatei:
http://horde4.dev.zew.local/static/fa8e3c71c9ec66a212a0e36ba0d6b7cc.js
Zeile: 848
Some of the lines from the mentioned javascript-file:
if(newCalendar||info.owner){if(type=='internal'||type=='tasklists'){this.updateGroupDropDown([['kronolithC'+type+'PGList',this.updateGroupPerms.bind(this,type)],['kronolithC'+type+'PGNew']]);$('kronolithC'+type+'PBasic').show();$('kronolithC'+type+'PAdvanced').hide();$('kronolithC'+type+'PNone').setValue(1);$('kronolithC'+type+'PAllShow').disable();$('kronolithC'+type+'PGList').disable();$('kronolithC'+type+'PGPerms').disable();$('kronolithC'+type+'PUList').disable();$('kronolithC'+type+'PUPerms').disable();$('kronolithC'+type+'PAdvanced').select('tr').findAll(function(tr){return
tr.retrieve('remove');}).invoke('remove');$('kronolithCalendar'+type+'LinkUrls').up().show();form.down('.kronolithColorPicker').show();if(type=='internal'){this.doAction('listTopTags',null,this.topTagsCallback.curry('kronolithCalendarinternalTopTags','kronolithCalendarTag'));}
form.down('.kronolithCalendarSubscribe').hide();form.down('.kronolithCalendarUnsubscribe').hide();$('kronolithCalendar'+type+'LinkPerms').up('span').show();if(!Object.isUndefined(info)&&info.owner){this.setPermsFields(type,info.perms);}}
if(type=='remote'||type=='internal'||type=='tasklists'){if(newCalendar||(type=='internal'&&calendar==Kronolith.conf.user)||(type=='tasklists'&&calendar=='tasks/'+Kronolith.conf.user)){form.select('.kronolithCalendarDelete').invoke('hide');}else{form.select('.kronolithCalendarDelete').invoke('show');}}
form.down('.kronolithCalendarSave').show();form.down('.kronolithFormActions
.kronolithSeparator').show();}else{form.disable();form.down('.kronolithColorPicker').hide();form.down('.kronolithCalendarDelete').hide();form.down('.kronolithCalendarSave').hide();if(type=='internal'||type=='tasklists'){$('kronolithCalendar'+type+'UrlSub').enable();if(type=='internal'){$('kronolithCalendar'+type+'UrlFeed').enable();$('kronolithCalendar'+type+'EmbedUrl').enable();}
this.calendarTagAc.disable();if(Kronolith.conf.calendars[type][calendar].show){form.down('.kronolithCalendarSubscribe').hide();form.down('.kronolithCalendarUnsubscribe').show().enable();}else{form.down('.kronolithCalendarSubscribe').show().enable();form.down('.kronolithCalendarUnsubscribe').hide();}
form.down('.kronolithFormActions
.kronolithSeparator').show();$('kronolithCalendar'+type+'LinkPerms').up('span').hide();}else{form.down('.kronolithFormActions
.kronolithSeparator').hide();}}},permsClickHandler:function(type,perm)
{$('kronolithC'+type+'PAdvanced').select('input[type=checkbox]').invoke('setValue',0);$('kronolithC'+type+'PAdvanced').select('tr').findAll(function(tr){return tr.retrieve('remove');}).invoke('remove');this.updateGroupDropDown([['kronolithC'+type+'PGNew']]);switch(perm){case'None':$('kronolithC'+type+'PAllShow').disable();$('kronolithC'+type+'PGList').disable();$('kronolithC'+type+'PGPerms').disable();$('kronolithC'+type+'PUList').disable();$('kronolithC'+type+'PUPerms').disable();break;case'All':$('kronolithC'+type+'PAllShow').enable();$('kronolithC'+type+'PGList').disable();$('kronolithC'+type+'PGPerms').disable();$('kronolithC'+type+'PUList').disable();$('kronolithC'+type+'PUPerms').disable();var
perms={'default':Kronolith.conf.perms.read,'guest':Kronolith.conf.perms.read};if($F('kronolithC'+type+'PAllShow')){perms['default']|=Kronolith.conf.perms.show;perms['guest']|=Kronolith.conf.perms.show;}
this.setPermsFields(type,perms);break;case'G':$('kronolithC'+type+'PAllShow').disable();$('kronolithC'+type+'PGList').enable();$('kronolithC'+type+'PGPerms').enable();$('kronolithC'+type+'PUList').disable();$('kronolithC'+type+'PUPerms').disable();var
group=$F('kronolithC'+type+'PGSingle')?$F('kronolithC'+type+'PGSingle'):$F('kronolithC'+type+'PGList');this.insertGroupOrUser(type,'group',group,true);$('kronolithC'+type+'PGshow_'+group).setValue(1);$('kronolithC'+type+'PGread_'+group).setValue(1);if($F('kronolithC'+type+'PGPerms')=='edit'){$('kronolithC'+type+'PGedit_'+group).setValue(1);}else{$('kronolithC'+type+'PGedit_'+group).setValue(0);}
$('kronolithC'+type+'PGdelete_'+group).setValue(0);if($('kronolithC'+type+'PGdelegate_'+group)){$('kronolithC'+type+'PGdelegate_'+group).setValue(0);}
break;case'U':$('kronolithC'+type+'PAllShow').disable();$('kronolithC'+type+'PGList').disable();$('kronolithC'+type+'PGPerms').disable();$('kronolithC'+type+'PUList').enable();$('kronolithC'+type+'PUPerms').enable();var
users=$F('kronolithC'+type+'PUList').strip();users=users?users.split(/,\s*/):[];users.each(function(user){this.insertGroupOrUser(type,'user',user,true);$('kronolithC'+type+'PUshow_'+user).setValue(1);$('kronolithC'+type+'PUread_'+user).setValue(1);if($F('kronolithC'+type+'PUPerms')=='edit'){$('kronolithC'+type+'PUedit_'+user).setValue(1);}else{$('kronolithC'+type+'PUedit_'+user).setValue(0);}
$('kronolithC'+type+'PUdelete_'+user).setValue(0);if($('kronolithC'+type+'PUdelegate_'+user)){$('kronolithC'+type+'PUdelegate_'+user).setValue(0);}},this);break;}},setPermsFields:function(type,perms)
{if(this.groupLoading){this.setPermsFields.bind(this,type,perms).defer();return;}
Opera throws this:
[05.09.2011 17:19:08] JavaScript - http://horde4.dev.zew.local/kronolith/
Event thread: click
Uncaught exception: TypeError: Cannot convert
'$('kronolithC'+type+'PGshow_'+group)' to object
Error thrown at line 848, column 403 in <anonymous function:
permsClickHandler>(type, perm) in
http://horde4.dev.zew.local/static/fa8e3c71c9ec66a212a0e36ba0d6b7cc.js:
$('kronolithC'+type+'PGshow_'+group).setValue(1);
called from line 953, column 590 in <anonymous function:
clickHandler>(e, dblclick) in
http://horde4.dev.zew.local/static/fa8e3c71c9ec66a212a0e36ba0d6b7cc.js:
this.permsClickHandler(info[1],info[2]);
called from line 55, column 241 in <anonymous function>(event) in
http://horde4.dev.zew.local/static/5291b44eed75f80f1b187d842429edd2.js:
return __method.apply(context,a);
called via Function.prototype.apply() from line 538, column 192 in
<anonymous function: responder>(event) in
http://horde4.dev.zew.local/static/5291b44eed75f80f1b187d842429edd2.js:
handler.call(element,event);
More information about the bugs
mailing list