Show flash messages based on turbolinks:load
instead of real page load
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
(function() {
|
||||
$( document ).on('turbolinks:load', function() {
|
||||
var DURATION = 10000;
|
||||
var SEVERITIES = ['danger', 'info', 'success', 'warning'];
|
||||
|
||||
@ -48,4 +48,4 @@
|
||||
|
||||
generateMethods();
|
||||
$(showFlashes);
|
||||
})();
|
||||
});
|
||||
|
Reference in New Issue
Block a user