Show flash messages based on turbolinks:load instead of real page load

This commit is contained in:
Sebastian Serth
2018-11-22 18:59:07 +01:00
parent 0fbbe97ae4
commit 68c07f49cf

View File

@ -1,4 +1,4 @@
(function() { $( document ).on('turbolinks:load', function() {
var DURATION = 10000; var DURATION = 10000;
var SEVERITIES = ['danger', 'info', 'success', 'warning']; var SEVERITIES = ['danger', 'info', 'success', 'warning'];
@ -48,4 +48,4 @@
generateMethods(); generateMethods();
$(showFlashes); $(showFlashes);
})(); });