Show warning when page didn't load completely.

This commit is contained in:
ccd0 2016-01-23 12:09:27 -08:00
parent 526be3737e
commit 0b67863b84

View File

@ -219,6 +219,12 @@ Main =
initThread: ->
if board = $ '.board'
unless $ '.board + *'
msg = $.el 'div',
<%= html('The page didn&#039;t load completely.<br>Some features may not work unless you <a href="javascript:;">reload</a>.') %>
$.on $('a', msg), 'click', -> location.reload()
new Notice 'warning', msg
threads = []
posts = []