From 2a49110f7f7022b0b6b5cfcc9276cbf8c9819bb0 Mon Sep 17 00:00:00 2001 From: Suraj Date: Fri, 5 Feb 2016 23:38:52 +0530 Subject: [PATCH] fixed bug of notifications --- public/static/js/script.js | 4 ++-- templates/_head.html | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/static/js/script.js b/public/static/js/script.js index d7d2439..d0831f9 100644 --- a/public/static/js/script.js +++ b/public/static/js/script.js @@ -22,12 +22,12 @@ $(document).ready(function(){ $('#addNoteModal').modal('show'); }); - if ($('#message').html()==''){ + if ($('#actlMsg').html()==' '){ $('.notification').addClass('hidden'); } else { $('.notification').fadeOut(9000); } - $('.notification-close').click(function(){$('.notification').fadeOut("slow")}) + $('.btnMessage').click(function(){$('.notification').fadeOut()}) /*$( document ).keypress( function(event){ diff --git a/templates/_head.html b/templates/_head.html index 438e3dd..0fc5d5f 100644 --- a/templates/_head.html +++ b/templates/_head.html @@ -43,7 +43,7 @@ - +

{{.Message}}