httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From max...@apache.org
Subject svn commit: r264668 - /httpd/mod_mbox/branches/httpd-mbox-if/data/archives.js
Date Tue, 30 Aug 2005 01:35:15 GMT
Author: maxime
Date: Mon Aug 29 18:35:10 2005
New Revision: 264668

URL: http://svn.apache.org/viewcvs?rev=264668&view=rev
Log:
Fixed newly introduced bug, moved some variable declarations.


Modified:
    httpd/mod_mbox/branches/httpd-mbox-if/data/archives.js

Modified: httpd/mod_mbox/branches/httpd-mbox-if/data/archives.js
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/branches/httpd-mbox-if/data/archives.js?rev=264668&r1=264667&r2=264668&view=diff
==============================================================================
--- httpd/mod_mbox/branches/httpd-mbox-if/data/archives.js (original)
+++ httpd/mod_mbox/branches/httpd-mbox-if/data/archives.js Mon Aug 29 18:35:10 2005
@@ -17,6 +17,18 @@
 /* mod_mbox javascript functions.
  */
 
+var body = null;
+var _mbox = '';       /* Current browsed mailbox */
+var _baseURI = '';    /* Base archives URI */
+var _sort = 'thread'; /* Sort mode defaults to 'thread' */
+var _page = 0;
+
+var _boxlist = null;
+var _msglist = null;
+
+var _default_ctx = 3;
+
+
 /* I *hate* doing this kind of things */
 function checkBrowser ()
 {
@@ -95,16 +107,6 @@
   return true;
 }
 
-var _mbox = '';       /* Current browsed mailbox */
-var _baseURI = '';    /* Base archives URI */
-var _sort = 'thread'; /* Sort mode defaults to 'thread' */
-var _page = 0;
-
-var _boxlist = null;
-var _msglist = null;
-
-var _default_ctx = 3;
-
 /* Returns the textual representation of a month number. */
 function getMonthName (num, full)
 {
@@ -199,7 +201,7 @@
   var depth  = parseInt(msg.getAttribute('depth'));
   var i;
 
-  var str = '<tr>';
+  var str = '<tr id="msg-' + msg_num + '">';
 
   /* The author */
   str += '<td class="author">';
@@ -482,7 +484,7 @@
   str += '</tbody></table>';
   msglist.innerHTML = str;
   body.appendChild(msglist);
-  document.getElementById(id).setAttribute('class', 'msgactive');
+  document.getElementById('msg-' + msg_num).setAttribute('class', 'msgactive');
 
   /* Display a loading box ... */
   body.innerHTML += '<div id="loading">Loading ...</div>';



Mime
View raw message