Skip to content
Snippets Groups Projects
Unverified Commit adb7441d authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4472 from JediKev/issue/dupe-page-requests

issue: Duplicate Page Requests
parents 33a7677c 4414f9bb
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,9 @@ $(document).ready(function(){
$('form').submit(function() {
$(window).unbind('beforeunload');
// Disable client-side Post Reply/Create Ticket buttons to help
// prevent duplicate POST
$(':submit', $(this)).attr('disabled', true);
$('#overlay, #loading').show();
return true;
});
......
......@@ -163,6 +163,9 @@ var scp_prep = function() {
$('form.save, form:has(table.list)').submit(function() {
$(window).unbind('beforeunload');
// Disable staff-side Post Reply/Open buttons to help prevent
// duplicate POST
$(':submit', $(this)).attr('disabled', true);
$('#overlay, #loading').show();
return true;
});
......
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