From 03cf21830f6d7274a6bfb6e0beb8653014740410 Mon Sep 17 00:00:00 2001 From: kload Date: Sun, 25 May 2014 10:59:02 +0000 Subject: [PATCH] [enh] Add a close button to flash notifications --- js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index 6d9719df..4d815f07 100644 --- a/js/app.js +++ b/js/app.js @@ -80,14 +80,14 @@ app = Sammy('#main', function (sam) { } } else { if (level == 'log') { - $('#flash').append('').show(); + $('#flash').append('').show(); } else { - $('#flash').append('').show(); + $('#flash').append('').show(); } $('#flash .alert').last().fadeIn(); } document.body.scrollTop = document.documentElement.scrollTop = 0; - $('#flash .alert-log button').on('click', function() { + $('#flash .alert-log button.btn-small').on('click', function() { $('#flash .alert-log p:hidden').fadeIn(); $('#flash .alert-log div').hide(); });