<div dir="ltr">Tasks are displayed in the upper part of the calendar, while events are displayed below in the time table. Those are different divs I suspect. Maybe that could be a way of discrimination.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 8, 2021 at 10:06 AM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A customer of mine wants a change to the way Calendar Views work <br>
slightly - I've been looking at this for a while but am not getting very <br>
far. I wonder if anyone else has an idea?<br>
<br>
In Calendar or SharedCalendar Views, when you click on an entry, you are <br>
navigated _away_ from the calendar and taken to the Detail View page of <br>
the Calendar entry, so you then have to navigate back again and if you <br>
have changed week/month or whatever then that is forgotten.<br>
<br>
If you hover and then click on the little pencil icon of the popover, it <br>
instead calls either Calendar_Calendar_Js.editCalendarEvent() or <br>
Calendar_SharedCalendar_Js.editCalendarTask() etc. where the event or <br>
task is opened in a modal popup. And the user is not taken away from the <br>
calendar.<br>
<br>
My customer wants this action to happen by default.<br>
<br>
I can see in Calendar_Calendar_Js where the popover markup is generated <br>
in registerPopoverEvent() but looking through fullCalendar and the <br>
eventRender code handling, I don't think it's going to be possible to <br>
simply replace the href with one of the above. (There are parts of full <br>
calendar where "event.url" is expected to be a real url, e.g. <br>
"window.location.href")<br>
<br>
So, I think I need to preventDefault, on each element and then replace <br>
the href target with one of the above, but there doesn't appear to be <br>
enough information in the DOM to determine if it is an event or a task <br>
and the event objects have already been rendered by fullCalendar and I <br>
do not think are available any more.<br>
<br>
<br>
Sorry this is a bit confusing but it is much harder than it really <br>
should be ;-)<br>
<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div>