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
173 173
174 if link and not link.target and isSameOrigin(link.href)174 if link and not link.target and isSameOrigin(link.href)
175 event.preventDefault()175 event.preventDefault()
176 page.show link.pathname + link.search + link.hash176 path = link.pathname + link.search + link.hash
177 path = path.replace /^\/\/+/, '/' # IE11 bug
178 page.show(path)
177 return179 return
178 180
179isSameOrigin = (url) ->181isSameOrigin = (url) ->
assets/stylesheets/global/_base.scss+4−1
@@ -10,7 +10,10 @@ body { · 9 unmodified lines
10 height: 100%;10 height: 100%;
11 margin: 0;11 margin: 0;
12 overflow: auto;12 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;
14 color: $textColor;17 color: $textColor;
15 word-wrap: break-word;18 word-wrap: break-word;
16 overflow-wrap: break-word;19 overflow-wrap: break-word;