Merge pull request #228 from openHPI/fix_flash_messages
Fix flash messages
This commit is contained in:
@ -15,7 +15,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def render_not_authorized
|
||||
redirect_to(:root, alert: t('application.not_authorized'))
|
||||
redirect_to(request.referrer || :root, alert: t('application.not_authorized'))
|
||||
end
|
||||
private :render_not_authorized
|
||||
|
||||
|
@ -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