From kronolith Tue Apr 06 17:49:13 2004 From: "W. Tasin" Date: Tue, 06 Apr 2004 17:49:13 +0000 To: kronolith Subject: [kronolith] Little Patch... Message-Id: <4072ED99.90301 () fhm ! edu> X-MARC-Message: https://marc.info/?l=kronolith&m=108127381414228 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------050503000903060701080309" This is a multi-part message in MIME format. --------------050503000903060701080309 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi all, here's another patch. Problem: Adding an event and changing the calender causes to set the category "New Category" inside the select box and doesn't reset to "Unfiled". Even the same to pressing "Reset" inside the form. Ciao Walter --------------050503000903060701080309 Content-Type: text/plain; name="kronolith_edit.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="kronolith_edit.diff" --- kronolith/templates/edit/edit.inc Sat Apr 3 05:40:07 2004 +++ kronolith/templates/edit/edit.inc Tue Apr 6 19:24:16 2004 @@ -30,7 +30,7 @@ " onclick="self.location = ''; return false;" /> - " onclick="document.event.reset(); updateWday('start_wday'); updateWday('end_wday');" /> + " onclick="document.event.reset(); changeCalendar(); updateWday('start_wday'); updateWday('end_wday');" /> @@ -423,7 +424,7 @@ " onclick="self.location = ''; return false;" /> - " onclick="document.event.reset(); updateWday('start_wday'); updateWday('end_wday');" /> + " onclick="document.event.reset(); changeCalendar(); updateWday('start_wday'); updateWday('end_wday');" /> --------------050503000903060701080309 Content-Type: text/plain; name="kronolith_editjs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="kronolith_editjs.diff" --- kronolith/templates/edit/javascript.inc Sat Feb 14 05:02:15 2004 +++ kronolith/templates/edit/javascript.inc Tue Apr 6 19:20:26 2004 @@ -36,7 +36,11 @@ for (i = 0; i < categories[calendar].length; i++) { f.category.options[i + 2] = new Option(categories[calendar][i][0], categories[calendar][i][1]); + if (categories[calendar][i][1]==0) { + f.category.selectedIndex=i + 2; + } } + } function setInterval(field) --------------050503000903060701080309 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Kronolith mailing list - Join the hunt: http://horde.org/bounties/#kronolith Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: kronolith-unsubscribe@lists.horde.org --------------050503000903060701080309--