Only allow one save

this would require jkuery plugin to be installed.

by Gerald Gillespie

HTML

<form id="ticket">
    <input class="inputFormatButton" type="button" value="different button"/><br/>
    <textarea>a fake ticket submission</textarea><br/>

        <input class="inputFormatButton" type="submit" value="submit"/>
</form>

JavaScript

$('form').on('submit', function () {
    
    $(this).find('.inputFormatButton').attr('disabled', 'disabled');
    alert('notice how your buttons are disabled now.  No more double-submits!');
    $('form').after('normally this would submit something but the page has been stopped now.  Please reload the page to try again');
    return false;
});