From 9cd5f20a4826adc25171b05ebf7d75ff4a12ffb3 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sat, 2 May 2015 19:48:34 -0400 Subject: [PATCH] Fix entry page error --- assets/javascripts/views/content/entry_page.coffee | 2 ++ assets/stylesheets/components/_page.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/assets/javascripts/views/content/entry_page.coffee b/assets/javascripts/views/content/entry_page.coffee index 5010e405..14cd7bb8 100644 --- a/assets/javascripts/views/content/entry_page.coffee +++ b/assets/javascripts/views/content/entry_page.coffee @@ -1,5 +1,6 @@ class app.views.EntryPage extends app.View @className: '_page' + @errorClass: '_page-error' @events: click: 'onClick' @@ -97,6 +98,7 @@ class app.views.EntryPage extends app.View onError: => @xhr = null @render @tmpl('pageLoadError') + @addClass @constructor.errorClass app.appCache?.update() return diff --git a/assets/stylesheets/components/_page.scss b/assets/stylesheets/components/_page.scss index 1fc7d40d..30ca2fff 100644 --- a/assets/stylesheets/components/_page.scss +++ b/assets/stylesheets/components/_page.scss @@ -5,6 +5,8 @@ ._page { position: relative; + ._page-error { position: static; } + > h1 { @extend ._lined-heading; } > h1:first-child { margin-top: 0; }