mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Fix entry page error
This commit is contained in:
parent
d9aeaee35f
commit
9cd5f20a48
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
class app.views.EntryPage extends app.View
|
class app.views.EntryPage extends app.View
|
||||||
@className: '_page'
|
@className: '_page'
|
||||||
|
@errorClass: '_page-error'
|
||||||
|
|
||||||
@events:
|
@events:
|
||||||
click: 'onClick'
|
click: 'onClick'
|
||||||
|
@ -97,6 +98,7 @@ class app.views.EntryPage extends app.View
|
||||||
onError: =>
|
onError: =>
|
||||||
@xhr = null
|
@xhr = null
|
||||||
@render @tmpl('pageLoadError')
|
@render @tmpl('pageLoadError')
|
||||||
|
@addClass @constructor.errorClass
|
||||||
app.appCache?.update()
|
app.appCache?.update()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
._page {
|
._page {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
._page-error { position: static; }
|
||||||
|
|
||||||
> h1 { @extend ._lined-heading; }
|
> h1 { @extend ._lined-heading; }
|
||||||
> h1:first-child { margin-top: 0; }
|
> h1:first-child { margin-top: 0; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue