From: <ru...@us...> - 2009-09-01 11:39:00
|
Revision: 7097 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7097&view=rev Author: rurban Date: 2009-09-01 11:38:52 +0000 (Tue, 01 Sep 2009) Log Message: ----------- fix indentation Modified Paths: -------------- trunk/themes/default/moacdropdown/js/modomext.js Modified: trunk/themes/default/moacdropdown/js/modomext.js =================================================================== --- trunk/themes/default/moacdropdown/js/modomext.js 2009-09-01 11:38:07 UTC (rev 7096) +++ trunk/themes/default/moacdropdown/js/modomext.js 2009-09-01 11:38:52 UTC (rev 7097) @@ -18,7 +18,7 @@ this.hInitFunction = hInitFunction } -cDomExtensionManager = +var cDomExtensionManager = { aExtensions : new Array() } @@ -149,44 +149,44 @@ switch( aSelectorData[ 2 ] ) { case '.' : if( hGroup[ nI ].className == aSelectorData[ 3 ] ) - { - hInitFunction( hGroup[ nI ] ) - } - break + { + hInitFunction( hGroup[ nI ] ) + } + break case '#' : if( hGroup[ nI ].id == aSelectorData[ 3 ] ) - { - hInitFunction( hGroup[ nI ] ) - } - break + { + hInitFunction( hGroup[ nI ] ) + } + break case '@' : aAttributeData = hAttributeRegEx.exec( aSelectorData[ 3 ] ) - sAttribute = hGroup[ nI ].getAttribute( aAttributeData[ 1 ] ) - if( sAttribute != null && sAttribute.length > 0 ) - { - if( aAttributeData[ 3 ] != '' ) + sAttribute = hGroup[ nI ].getAttribute( aAttributeData[ 1 ] ) + if( sAttribute != null && sAttribute.length > 0 ) + { + if( aAttributeData[ 3 ] != '' ) + { + if( aAttributeData[ 2 ] == '=' ) { - if( aAttributeData[ 2 ] == '=' ) + if( sAttribute == aAttributeData[ 3 ] ) { - if( sAttribute == aAttributeData[ 3 ] ) - { - hInitFunction( hGroup[ nI ] ) - } + hInitFunction( hGroup[ nI ] ) } - else /* the case is like ~ */ + } + else /* the case is like ~ */ + { + if( sAttribute.indexOf( aAttributeData[ 3 ] ) >= 0 ) { - if( sAttribute.indexOf( aAttributeData[ 3 ] ) >= 0 ) - { - hInitFunction( hGroup[ nI ] ) - } + hInitFunction( hGroup[ nI ] ) } } - else - { - hInitFunction( hGroup[ nI ] ) - } } - break + else + { + hInitFunction( hGroup[ nI ] ) + } + } + break } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |