Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed some links in docs can't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Dec 13, 2009
1 parent 9aa7e9f commit a0ec665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Docs/assets/docs.js
Expand Up @@ -28,7 +28,7 @@ var Docs = {
var id = location.hash = hrefsplit[2];
var to = $(id.replace(/\./g, '-')).getCoordinates();
window.scrollTo(0, to.top);
}, 100);
}, 1000);
});
},

Expand Down Expand Up @@ -144,7 +144,7 @@ var Docs = {

// hack some links
sd.getElements('a[href^=/]').each(function(a){
var href = a.href;
var href = Docs.remote ? a.get('href').slice(1) : a.href;
var hrefsplit = href.split('#');
var href = '#' + hrefsplit[0].replace('file:///', '') + '.md';
if (hrefsplit.length>1) href += '#' + hrefsplit[1];
Expand Down

0 comments on commit a0ec665

Please sign in to comment.