Package: webcalendar
Version: 0.9.45-2
Severity: normal
We discovered that in (at least some versions of) Internet Explorer 6
for Windows, an attempt to create a weekly repeating event fails because
the option for selecting the day on which to repeat does not appear.
The problem does not appear in IE5.1/Mac, Firefox 1.0, or Konqueror 3.3.1.
I tracked the problem to an apparent IE Javascript bug, where the
Javascript document.getElementById('day') method returns an element
with the NAME of 'day', rather than the one with the ID of 'day',
if the former appears first. In this case it was a SELECT NAME="day"
element rather than the TD ID="day" element.
I was able to work around the IE bug by changing the ID of the affected element
to 'repeatday' rather than just 'day', since no other elements on the page have
an ID *or* a NAME or 'repeatday'.
Patch follows:
diff -ur webcalendar-0.9.45-2/edit_entry.php webcalendar/edit_entry.php
--- webcalendar-0.9.45-2/edit_entry.php 2004-12-13 19:09:38.000000000 -0500
+++ webcalendar/edit_entry.php 2005-02-02 10:29:42.000000000 -0500
@@ -710,7 +710,7 @@
<label for="entry_freq"><?php
etranslate("Frequency")?>:</label></td><td>
<input type="text" name="rpt_freq" id="entry_freq" size="4"
maxlength="4" value="<?php echo $rpt_freq; ?>" />
</td></tr>
-<tr id="day" style="visibility:hidden;" title="<?php
etooltip("repeat-day-help")?>"><td class="tooltip">
+<tr id="repeatday" style="visibility:hidden;" title="<?php
etooltip("repeat-day-help")?>"><td class="tooltip">
<?php etranslate("Repeat Day")?>: </td><td>
<?php
if( $WEEK_START != 1)
diff -ur webcalendar-0.9.45-2/includes/js/edit_entry.php
webcalendar/includes/js/edit_entry.php
--- webcalendar-0.9.45-2/includes/js/edit_entry.php 2004-12-05
08:16:21.000000000 -0500
+++ webcalendar/includes/js/edit_entry.php 2005-02-02 10:30:56.000000000
-0500
@@ -152,9 +152,9 @@
makeVisible ( "enddate" );
makeVisible ( "freq" );
if ( i == 2 ) {
- makeVisible ( "day" );
+ makeVisible ( "repeatday" );
} else {
- makeInvisible ( "day" );
+ makeInvisible ( "repeatday" );
}
} else {
// Timed Event
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages webcalendar depends on:
ii apache [httpd] 1.3.33-3 versatile, high-performance HTTP s
ii debconf [debconf-2.0] 1.4.30.11 Debian configuration management sy
ii mysql-server 4.0.23-3 mysql database server binaries
ii php4 4:4.3.10-2 server-side, HTML-embedded scripti
ii php4-cli 4:4.3.10-2 command-line interpreter for the p
ii php4-mysql 4:4.3.10-2 MySQL module for php4
-- debconf information:
webcalendar/conf/single_user_mode: false
webcalendar/conf/db_host: localhost
webcalendar/conf/db_database:
webcalendar/note/sql_install:
webcalendar/conf/db_type: mysql
webcalendar/status/db_installed: false
webcalendar/note/admin_user:
webcalendar/conf/db_login:
webcalendar/conf/db_persistent: true
webcalendar/conf/single_user_login:
webcalendar/conf/db_password:
webcalendar/conf/use_http_auth: false
* webcalendar/status/debconf_managed: false
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]