[Rt-commit] r15900 - in rt/branches/3.999-DANGEROUS: share/html/NoAuth/js
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Sep 11 01:31:13 EDT 2008
Author: sunnavy
Date: Thu Sep 11 01:31:07 2008
New Revision: 15900
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/share/html/NoAuth/js/util.js
Log:
r16605 at sunnavys-mb: sunnavy | 2008-09-11 13:04:54 +0800
js uses className instead of classname
Modified: rt/branches/3.999-DANGEROUS/share/html/NoAuth/js/util.js
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/NoAuth/js/util.js (original)
+++ rt/branches/3.999-DANGEROUS/share/html/NoAuth/js/util.js Thu Sep 11 01:31:07 2008
@@ -76,7 +76,7 @@
function toggleVisibility(id) {
var e = $(id);
- if ( e.classname.match( /\bhidden\b/ ) )
+ if ( e.className.match( /\bhidden\b/ ) )
show(e);
else
hide(e);
@@ -101,14 +101,14 @@
function addClass(id, value) {
var e = $(id);
- if ( e.classname.match( new RegExp('\b'+ value +'\b') ) )
+ if ( e.className.match( new RegExp('\b'+ value +'\b') ) )
return;
- e.classname += e.classname? ' '+value : value;
+ e.className += e.className? ' '+value : value;
}
function delClass(id, value) {
var e = $(id);
- e.classname = e.classname.replace( new RegExp('\\s?\\b'+ value +'\\b', 'g'), '' );
+ e.className = e.className.replace( new RegExp('\\s?\\b'+ value +'\\b', 'g'), '' );
}
/* Rollups */
@@ -117,7 +117,7 @@
var e = $(id);
var e2 = e.parentNode;
- if (e.classname.match(/\bhidden\b/)) {
+ if ( e.className.match(/\bhidden\b/)) {
set_rollup_state(e,e2,'shown');
createCookie(id,1,365);
}
More information about the Rt-commit
mailing list