ZeusWPI/Gandalf — pull request #431 by Silox (2014-03-11 15:31:02+00:00)
Title: Access levels get added twice after a refresh

This is related to #429; when the page gets reloaded the form actually works. It just doesn't when someone navigates with a turbolink to the page. If someone refreshes the page and adds a ticket, the ticket is added twice (once because the submit button just works and once because of the onclick handler for the button). The solution here is to change `$(id).parent().find('button').on('click', function() {` to `$(id).parent().find('button').on('click', function(e) {` and add `e.preventDefault();` in the body of this handler.