Evil Blog

{'post_header'|@translate}

{'post_text'|@translate}
{footer_script}{literal} $(document).ready(function(){ window['opened_edit_form'] = false; }); function close_edit_form (val) { $('input[name="edit_post_id"]').remove(); //$('#post_id_'+val).text(window.p_id); $('input[name="edit_post_header"]').remove(); $('#post_header_'+val).text(window.p_header); $('textarea[name="edit_post_text"]').remove(); $('#post_text_'+val).html(window.p_text); $('input[name="edit_submit_post"]').remove(); $('input[name="cansel_post_form"]').remove(); $('#post_'+val+' .categoryActions').show(); window.opened_edit_form = false; } function open_edit_form (val) { if (!window.opened_edit_form) { $('#post_'+val+' .categoryActions').hide(); $('#post_header_'+val).html(''); window['p_header'] = document.edit_form.edit_post_header.value; $('#post_text_'+val).html(''); window['p_text'] = $('textarea[name="edit_post_text"]').text(); $('').insertAfter('#post_text_'+val); $('').insertAfter('#post_text_'+val); $('').insertAfter('#post_text_'+val); window.opened_edit_form = true; } else { alert('Close other form of editing!'); } } {/literal}{/footer_script}
{$blog_name}