diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-22 07:46:52 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-22 07:47:41 +0100 |
| commit | fe7ee50baa8f96836ecefa2088d129b90705125c (patch) | |
| tree | d148e031ac882a1af0ea35629d6cd27c560d50fb /public/assets/js/lib/views/index/index.js | |
| parent | fa4ed0f3b1ce5decfc6ee59d38e63e78a7793de4 (diff) | |
new mail alert
Diffstat (limited to 'public/assets/js/lib/views/index/index.js')
| -rw-r--r-- | public/assets/js/lib/views/index/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/js/lib/views/index/index.js b/public/assets/js/lib/views/index/index.js index 3f217fc..edf5483 100644 --- a/public/assets/js/lib/views/index/index.js +++ b/public/assets/js/lib/views/index/index.js @@ -34,6 +34,15 @@ var IndexView = View.extend({ this.hootbox.load(data.hootbox) this.threadbox.load(data) this.lastlog.load(data.lastlog) + if (data.mail.count) { + $(".alert").show().html( + "<a href='/mail'>" + + "You have " + + data.mail.count + + " new message" + + courtesy_s(data.mail.count) + + "!</a>") + } $(".search_form input").focus() }, |
