[dev] PATCH Errata : Add range when selecting mails

Cariad Ilmàra cariad at adnx.net
Mon Dec 8 16:25:02 PST 2003


My bad... length is a reserved word in IE...
Here are the correct diffs :

--- javascript.inc.old  Mon Dec  8 16:00:49 2003
+++ javascript.inc      Mon Dec  8 19:52:24 2003
@@ -16,6 +16,22 @@
      }
  }

+function chkrange() {
+               chk_len = document.messages.length;
+               ok = 0;
+
+               for (i=0; i<chk_len; i++) {
+                       if (document.messages[i].type == "checkbox") {
+                               if (document.messages[i].checked == true) {
+                                       ok = (ok == 1) ? 0 : 1;
+                               }
+                               if (document.messages[i].checked ==
false && ok == 1) {
+                                       document.messages[i].checked = true;
+                               }
+                       }
+               }
+}
+
  function Submit(actID)
  {
  <?php if ($imp['base_protocol'] == 'pop3'): ?>


--- actions.inc.old Mon Dec  8 22:15:38 2003
+++ actions.inc     Mon Dec  8 22:15:58 2003
@@ -18,6 +18,7 @@
  <?php if ($show_whitelist_link): ?>
          | <?php echo Horde::widget('', _("Whitelist"), 'widget', '',
"Submit('whitelist'); return false;", _("Whitelist")); ?>
  <?php endif; ?>
+       | <?php echo Horde::widget('#', _("Range"), 'widget', '',
"chkrange(); return false;", _("Range")) ?>
      | <?php echo Horde::widget('', _("Forward"), 'widget', '',
"Submit('fwd_digest'); return false;", _("Forward")) ?>
  <?php if ($conf['spam']['reporting']): ?>
      | <?php echo Horde::widget('', _("Report as Spam"), 'widget', '',
"Submit('spam_report'); return false;", _("Report as Spam")); ?>

-- 
Cariad Ilmàra
http://cariad.adnx.net/
The nice thing about Windows is - It does not just crash, it displays a
dialog box and lets you press 'OK' first.


More information about the dev mailing list