<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sstallard419</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sstallard419"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Sstallard419"/>
	<updated>2026-04-15T10:09:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Calendar_Show_All-Day_Events_in_Month_View&amp;diff=4493</id>
		<title>Patch Calendar Show All-Day Events in Month View</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Calendar_Show_All-Day_Events_in_Month_View&amp;diff=4493"/>
		<updated>2009-08-17T15:05:31Z</updated>

		<summary type="html">&lt;p&gt;Sstallard419: Reporting a bug&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
Could some one add this patch to the webos modifications series for quilt?&lt;br /&gt;
&lt;br /&gt;
This patch will modify the calendar application to show all day events in the month view of the application.&lt;br /&gt;
It denotes days with all day events by changing the background of the cell to be blue.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Modifies the month controller to show allday events in the month scene by changing the background of the cell to a light blue.&lt;br /&gt;
Index: /usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js&lt;br /&gt;
===================================================================&lt;br /&gt;
--- .orig/usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js&lt;br /&gt;
+++ /usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js&lt;br /&gt;
@@ -25,11 +25,25 @@ var MonthAssistant = Class.create({&lt;br /&gt;
                this.scrollerModel = { scrollbars: false, mode: &amp;quot;vertical-snap&amp;quot;, snapIndex: 0, snapElements: { y: [] } };&lt;br /&gt;
        },&lt;br /&gt;
&lt;br /&gt;
+  fullEvts: null,&lt;br /&gt;
+&lt;br /&gt;
        setupMonth: function(startDate, endDate, callbackfn)&lt;br /&gt;
        {&lt;br /&gt;
+               getCalendarService().getEvents(getCurrentCal(),startDate.getTime(), endDate.getTime(),&lt;br /&gt;
+      this.getEventsCallback.bind(this),&lt;br /&gt;
+      this.controller,&lt;br /&gt;
+      this.getEventsFailCallback,&lt;br /&gt;
+                       {useSlices: true}&lt;br /&gt;
+    );&lt;br /&gt;
                getCalendarService().getBusyDays(getCurrentCal(), startDate.getTime(), endDate.getTime(), callbackfn, this.controller);&lt;br /&gt;
        },&lt;br /&gt;
-&lt;br /&gt;
+&lt;br /&gt;
+       getEventsCallback: function(resp)&lt;br /&gt;
+       {&lt;br /&gt;
+Mojo.Log.info('month-assistant:getEventsCallback');&lt;br /&gt;
+               this.fullEvts = resp.days;&lt;br /&gt;
+       },&lt;br /&gt;
+&lt;br /&gt;
        buildViewHeader: function()&lt;br /&gt;
        {&lt;br /&gt;
                //Mojo.Log.info(&amp;quot;month-assistant: buildViewHeader&amp;quot;);&lt;br /&gt;
@@ -342,6 +356,10 @@ var MonthAssistant = Class.create({&lt;br /&gt;
                var daylen = days.length - 1; // We get back more days of info that we want - 1 more in fact, because its inclusive, rather than exclusive&lt;br /&gt;
                for (var d = 0; d &amp;lt; daylen; d++)&lt;br /&gt;
                {&lt;br /&gt;
+                       if (this.fullEvts[d].allDayEvents.length &amp;gt; 0)&lt;br /&gt;
+                       {&lt;br /&gt;
+                                       dayCell.style.backgroundColor = '#99ccff';&lt;br /&gt;
+                       }&lt;br /&gt;
                        var day = this._token2state(days.charCodeAt(d));&lt;br /&gt;
&lt;br /&gt;
                        var child = dayCell.firstChild;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
* When changing (scrolling) from current month to the next month, the All-Day Events seem to be appended to the current list, therefore the dates show the blue background even though there isn't an event on the day.  I'm still working on a fix for it but right now I have the correct dates showing but the color format for the previous and next overlapping month dates are incorrect -sstallard419&lt;/div&gt;</summary>
		<author><name>Sstallard419</name></author>
	</entry>
</feed>