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

Commit

Permalink
Be nice to IE8. Not sure about its older brothers.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Dec 20, 2009
1 parent 41ab19e commit 3c6f6b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Docs/assets/docs.js
Expand Up @@ -4,7 +4,7 @@ var Docs = {
'MooEditable/MooEditable.UI.MenuList.md',
'MooEditable/MooEditable.UI.ButtonOverlay.md',
'MooEditable/MooEditable.Extras.md',
'MooEditable/MooEditable.Group.md',
'MooEditable/MooEditable.Group.md'
],
remote: false,
githubAPI: {
Expand Down Expand Up @@ -146,7 +146,8 @@ var Docs = {
sd.getElements('a[href^=/]').each(function(a){
var href = Docs.remote ? a.get('href').slice(1) : a.href;
var hrefsplit = href.split('#');
var href = '#' + hrefsplit[0].replace('file:///', '') + '.md';
var path = hrefsplit[0].replace(/([a-z:\/]+:\/{1,3})/i, '');
var href = '#' + path + '.md';
if (hrefsplit.length>1) href += '#' + hrefsplit[1];
a.href = href;
});
Expand Down

0 comments on commit 3c6f6b3

Please sign in to comment.