// Useful functions for Adding issue function askNoti(checkit, youare) { el=$.id('asi-noti'); var extrahtml = ""; extrahtml += "Send notification to assignee"; extrahtml += ""; el.innerHTML=extrahtml; } function shownewsection() { var a=$.id('sections');a.size = a.size-1; var b=$.id('newsection');b.className=""; } 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 deldraft(draftid) { $('p.draft-'+draftid).remove(); $.post('DeleteDraftIssue', {id:draftid, return_show_drafts_simple:1}, function(resp) { $('#issuedraftsouter').html(resp); }); return false; }