Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/errors.html.haml')
-rw-r--r--app/views/layouts/errors.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/layouts/errors.html.haml b/app/views/layouts/errors.html.haml
index 25fe4c898ca..57260ccedea 100644
--- a/app/views/layouts/errors.html.haml
+++ b/app/views/layouts/errors.html.haml
@@ -20,4 +20,10 @@
history.back();
});
}
+
+ // We do not have rails_ujs here, so we're manually making a link trigger a form submit.
+ document.getElementById('sign_out_link').addEventListener('click', function(e) {
+ e.preventDefault();
+ document.getElementById('sign_out_form').submit();
+ });
}());