History

Fix IE11 issues

Thibaut Courouble committed 9 years ago

Commit 74d7ad01 parent 214622b2 files · +7 −2Browse files

Unified · Split

2 files
  1. assets/javascripts/lib/page.coffee +3 −1
  2. assets/stylesheets/global/_base.scss +4 −1
assets/javascripts/lib/page.coffee+3−1
@@ -173,7 +173,9 @@ onclick = (event) -> · 172 unmodified lines
173173
174174 if link and not link.target and isSameOrigin(link.href)
175175 event.preventDefault()
176− page.show link.pathname + link.search + link.hash
176+ path = link.pathname + link.search + link.hash
177+ path = path.replace /^\/\/+/, '/' # IE11 bug
178+ page.show(path)
177179 return
178180
179181 isSameOrigin = (url) ->
assets/stylesheets/global/_base.scss+4−1
@@ -10,7 +10,10 @@ body { · 9 unmodified lines
1010 height: 100%;
1111 margin: 0;
1212 overflow: auto;
13− font: normal 1em/1.7 $baseFont;
13+ font-size: 1em;
14+ font-weight: normal;
15+ font-family: $baseFont;
16+ line-height: 1.7;
1417 color: $textColor;
1518 word-wrap: break-word;
1619 overflow-wrap: break-word;