Skip to content
Snippets Groups Projects
Commit 50150134 authored by Jared Hancock's avatar Jared Hancock
Browse files

tabs: Stay on same tab when submitting a form

parent 44dae880
No related branches found
No related tags found
No related merge requests found
......@@ -800,6 +800,11 @@ $.changeHash = function(hash, quiet) {
}
};
// Forms — submit, stay on same tab
$(document).on('submit', 'form', function() {
$(this).attr('action', $(this).attr('action') + window.location.hash);
});
//Collaborators
$(document).on('click', 'a.collaborator, a.collaborators', function(e) {
e.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment