[Zope] beehivecal patch

Chris McDonough chris@iqgroup.com
Mon, 27 Sep 1999 17:54:30 -0400


I had problems with the javascript validation code in beehivecal 0.2.0 under
IE 5 (it wouldn't take any time entered into the add announcement text box),
here's a diff to standard_html_header.dtml that makes it work for me:

63,68c63,68
<      test0 = parseInt(document.newannounce.tme.value[0])
<      test1 = parseInt(document.newannounce.tme.value[1])
<      test2 = (document.newannounce.tme.value[2])
<      test3 = parseInt(document.newannounce.tme.value[3])
<      test4 = parseInt(document.newannounce.tme.value[4])
<      if ((!document.newannounce.announce.value) ||
(!document.newannounce.tme.value)) {
---
>      test0 = parseInt(document.newannounce.tme.value.substr(0,1))
>      test1 = parseInt(document.newannounce.tme.value.substr(1,1))
>      test2 = (document.newannounce.tme.value.substr(2,1))
>      test3 = parseInt(document.newannounce.tme.value.substr(3,1))
>      test4 = parseInt(document.newannounce.tme.value.substr(4,1))
>           if ((!document.newannounce.announce.value) ||
(!document.newannounce.tme.value)) {
123,124d122
<
<


Additionally, I'm sort of confused as to how to actually use this thing...
the calendar is really neat, and I like that you can add events... but what
are the announcements for?  And the goals and problems stuff with a quick
glance is very confusing.  I will spend more time playing with it, as the
calendar functionality of it has a LOT of promise... the other stuff may
need some more work.

Thanks a lot, beehive!

- Chris