// Useful functions for Quick Add Issue function autosave() { $.post('AutoSaveDraftIssue', $(document.ai).fastSerialize(), function(resp) { if (resp) { $('input[name="draft_issue_id"]').val(resp); } }); } var as_timer; stopautosave=function() { if (as_timer) clearTimeout(as_timer); }; startautosave = function() { autosave(); as_timer=window.setTimeout("startautosave()", *1000); }; function softsubmit() { if (document.ai) { document.ai.action='/AddIssue'; document.ai.submit(); } }