Possible hacky workaround for #2068.

This commit is contained in:
Nick Winter 2015-01-08 11:42:42 -08:00
parent 79c5b53de1
commit 04e0624268
2 changed files with 8 additions and 1 deletions

View file

@ -4,7 +4,7 @@ block content
h1.text-center(data-i18n="not_found.page_not_found") Page Not Found
num = Math.floor(Math.random() * 3) + 1
- var num = Math.floor(Math.random() * 3) + 1;
img(src="/images/pages/not_found/404_#{num}.png" class="not-found-image")

View file

@ -4,3 +4,10 @@ template = require 'templates/core/not-found'
module.exports = class NotFoundView extends RootView
id: 'not-found-view'
template: template
# For some reason, it wasn't really rendering the top bar or doing i18n, so I hacked around it. (#2068.)
afterRender: ->
unless @renderedOnce
_.delay (=> @render?()), 1000
@renderedOnce = true
super()