[imp] Bug in compose.js
Didi Rieder
adrieder at sbox.tugraz.at
Thu Feb 6 14:38:16 PST 2003
Hi,
MS-IE (and maybe others) has Problems when composing a message from a POP3
account, it puts some errors about undefined objects:
Error: 'document.compose.submitBtn2' is null or not an object
Here is a patch which seems to fix this (CVS HEAD):
--- compose.js.old Fri Jan 31 20:48:05 2003
+++ compose.js Thu Feb 6 14:30:46 2003
@@ -217,10 +217,14 @@
<?php endif; ?>
now = new Date();
document.compose.submitBtn1.disabled = true;
- document.compose.submitBtn2.disabled = true;
+ <?php if ($conf['user']['allow_folders']): ?>
+ document.compose.submitBtn2.disabled = true;
+ <?php endif; ?>
document.compose.submitBtn3.disabled = true;
document.compose.submitBtn4.disabled = true;
- document.compose.submitBtn5.disabled = true;
+ <?php if ($conf['user']['allow_folders']): ?>
+ document.compose.submitBtn5.disabled = true;
+ <?php endif; ?>
document.compose.submitBtn6.disabled = true;
document.compose.submitBtn7.disabled = true;
if (document.compose.style && document.compose.style.cursor) {
Didi
--
-------------------------
Didi Rieder
adrieder at sbox.tugraz.at
PGPKey ID: 3431D0B0
-------------------------
More information about the imp
mailing list