Default view?

73 views
Skip to first unread message

Valentijn Sessink

unread,
Nov 28, 2012, 5:44:31 AM11/28/12
to agend...@googlegroups.com
Hi,

The default view for Agendav is "month", and with all it's delegated agendas visible. That poses somewhat of a problem in situations where someone has viewing rights on *all* agenda's in an organisation: I've seen situations where 30+ agenda's are queried for the whole month - leading to a seemingly endless startup time after logging in.

Setting the delegated agendas to "hide" could help here, as could setting the default view to "day".

I tried to look around in the code to find out where the default view is configured, but I couldn't find it. I admit: I am by no means a javascript-programmer.

Could anyone point out how to set the default view to "day" and how to set delegated agendas to invisible? Please note that I'm using the "hack" by Kiwi https://groups.google.com/forum/?fromgroups=#!topic/agendav-dev/qBIAnXm8i3g to get the list of delegations.

Best regards,

Valentijn

Jorge López Pérez

unread,
Dec 3, 2012, 1:54:41 PM12/3/12
to agend...@googlegroups.com
Hi Valentijn,

El 28/11/12 11:44, Valentijn Sessink escribió:

> Could anyone point out how to set the default view to "day" and how to
> set delegated agendas to invisible? Please note that I'm using the
> "hack" by Kiwi
> https://groups.google.com/forum/?fromgroups=#!topic/agendav-dev/qBIAnXm8i3g
> to get the list of delegations.

There is currently no way of setting a default view without modifying
AgenDAV core. Would you mind to create a new issue on GitHub regarding this?

BTW, this is an easy modification. What AgenDAV version are you
currently using?

Regards.

--
Jorge López Pérez
http://adobo.org
Jabber: jor...@jabberes.org

Valentijn Sessink

unread,
Dec 5, 2012, 5:46:50 AM12/5/12
to agend...@googlegroups.com
Hi Jorge,


On Monday, December 3, 2012 7:54:41 PM UTC+1, Jorge Lopez wrote:
There is currently no way of setting a default view without modifying
AgenDAV core. Would you mind to create a new issue on GitHub regarding this?

I realise that I'll have to change the source - but that's not a problem (given that I've patched it already). I've created an Issue on Github, your magic number is #72.

BTW, this is an easy modification. What AgenDAV version are you
currently using?

Judgeing from the Changelog, it's 1.2.6.2. (the latest and greatest :)

Best regards,

Valentijn

Valentijn Sessink

unread,
Jan 17, 2013, 8:34:34 AM1/17/13
to agend...@googlegroups.com
Hi Jorge,

You did not reply - but there is an "easy modification" that does this. Is this a small code change that I could apply? Or is it bigger?

Best regards,

Valentijn


On Monday, December 3, 2012 7:54:41 PM UTC+1, Jorge Lopez wrote:

Jorge López Pérez

unread,
Jan 17, 2013, 8:41:00 AM1/17/13
to agend...@googlegroups.com
Hi Valentijn,

El 17/01/13 14:34, Valentijn Sessink escribió:

> You did not reply - but there is an "easy modification" that does this.
> Is this a small code change that I could apply? Or is it bigger?

My apologies, I missed your mail.

You could modify the the file 'web/public/js/agendav-1.2.6.1.js'. It
ships as a minified JS, but you'll quickly find the following string:

--8<--
...$a={defaultView:"month",...
-->8--

Just replace 'month' with the view name you'd like to set as default.

Regards.

--
Jorge López Pérez
http://adobo.org
jabber: jor...@jabberes.org
Reply all
Reply to author
Forward
0 new messages