You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2014/03/29 07:48:59 UTC

svn commit: r1582961 - /couchdb/site/script/smooth.js

Author: kxepal
Date: Sat Mar 29 06:48:59 2014
New Revision: 1582961

URL: http://svn.apache.org/r1582961
Log:
Fix broken navigation due to s/name/id/ attribute for a tag

Modified:
    couchdb/site/script/smooth.js

Modified: couchdb/site/script/smooth.js
URL: http://svn.apache.org/viewvc/couchdb/site/script/smooth.js?rev=1582961&r1=1582960&r2=1582961&view=diff
==============================================================================
--- couchdb/site/script/smooth.js (original)
+++ couchdb/site/script/smooth.js Sat Mar 29 06:48:59 2014
@@ -47,7 +47,7 @@ Scroller = {
 	      e.stopPropagation()
 	    }
 	},
-	
+
 	// move the scroll bar to the particular div.
 	scroll: function(d){
 		i = window.innerHeight || document.documentElement.clientHeight;
@@ -80,7 +80,7 @@ Scroller = {
 		        	l=this.hash.substr(1);
 		        	 a = document.getElementsByTagName('a');
 				     for (i=0;i<a.length;i++) {
-				     	if(a[i].name == l){
+				     	if(a[i].id == l){
 				     		clearInterval(Scroller.interval);
 				     		Scroller.interval=setInterval('Scroller.scroll('+Scroller.gy(a[i])+')',10);
 						}