spambayes/spambayes ProxyUI.py,1.61,1.62

"Tony Meyer" <[email protected]>
Newsgroups gmane.mail.spam.spambayes.cvs
Message-ID <[email protected]>
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14202/spambayes

Modified Files:
	ProxyUI.py 
Log Message:
Add suggestion from Matt Southall (on wiki) to highlight current row of review table
 with a little bit of javascript.  This should still work exactly as it did before
 if javascript isn't available.

Index: ProxyUI.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/ProxyUI.py,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** ProxyUI.py	6 Apr 2005 02:38:20 -0000	1.61
--- ProxyUI.py	14 Apr 2005 06:18:16 -0000	1.62
***************
*** 370,373 ****
--- 370,376 ----
              row.tokens.href="showclues?key=%s&subject=%s&tokens=1" % (key, subj)
              setattr(row, 'class', ['stripe_on', 'stripe_off'][stripe]) # Grr!
+             setattr(row, 'onMouseOut',
+                     ["this.className='stripe_on';",
+                      "this.className='stripe_off';"][stripe])
              row = str(row).replace('TYPE', label).replace('KEY', key)
              table += row
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.