From fe7ee50baa8f96836ecefa2088d129b90705125c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 22 Dec 2017 07:46:52 +0100 Subject: new mail alert --- public/assets/js/lib/views/index/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'public/assets/js/lib/views/index/index.js') 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( + "" + + "You have " + + data.mail.count + + " new message" + + courtesy_s(data.mail.count) + + "!") + } $(".search_form input").focus() }, -- cgit v1.2.3-70-g09d2