diff --git a/app/assets/javascripts/application.js.erb b/app/assets/javascripts/application.js.erb index b587a372c..387ee58d0 100644 --- a/app/assets/javascripts/application.js.erb +++ b/app/assets/javascripts/application.js.erb @@ -199,10 +199,16 @@ var HelperModule = (function(){ flash.fadeTo(500, 0).slideUp(500, function () { $(this).remove(); }); - }, 5000); + }, 3000); } } + helpers.dismissAlert = function() { + $('#alert-flash').on('click', function() { + $('#alert-flash').alert('close'); + }) + } + helpers.flashAlertMsg = function(message, type) { var alertType; var glyphSign; @@ -220,11 +226,11 @@ var HelperModule = (function(){ alertType = ' alert-warning '; glyphSign = ' glyphicon-exclamation-sign '; } - var htmlSnippet = '