History

Fix entry page error

Thibaut committed 11 years ago

Commit 9cd5f201 parent d9aeaee2 files · +4 −0Browse files

Unified · Split

2 files
  1. assets/javascripts/views/content/entry_page.coffee +2 −0
  2. assets/stylesheets/components/_page.scss +2 −0
assets/javascripts/views/content/entry_page.coffee+2−0
@@ -1,5 +1,6 @@
11 class app.views.EntryPage extends app.View
22 @className: '_page'
3+ @errorClass: '_page-error'
34
45 @events:
56 click: 'onClick'
@@ -97,6 +98,7 @@ class app.views.EntryPage extends app.View · 91 unmodified lines
9798 onError: =>
9899 @xhr = null
99100 @render @tmpl('pageLoadError')
101+ @addClass @constructor.errorClass
100102 app.appCache?.update()
101103 return
102104
assets/stylesheets/components/_page.scss+2−0
@@ -5,6 +5,8 @@ · 4 unmodified lines
55 ._page {
66 position: relative;
77
8+ ._page-error { position: static; }
9+
810 > h1 { @extend ._lined-heading; }
911 > h1:first-child { margin-top: 0; }
1012