You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2005/08/30 03:35:15 UTC
svn commit: r264668 - /httpd/mod_mbox/branches/httpd-mbox-if/data/archives.js
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>';