{form name="post_form"}
{if !empty($quoteText) && !empty($quoteId)} {/if}
{input name="text"}
{error name="text"}
{if $enableAttachments}
{/if}
{submit name="submit"}
{/form}
{if !empty($quoteText) && !empty($quoteId)}
{$quoteText}
{text key='forum+back_to_post'} {script} $("#forum_close_floatbox").click(function(){ OWM.getActiveFloatBox().close(); }); {/script}
{/if} {if $enableAttachments}
{$attachments}
{decorator name="button" langLabel="forum+clear_all" id="forum_add_post_clear_files"} {decorator name="button" langLabel="forum+add_files" id="forum_add_post_attach_files"}
{script} $( document ).ready(function() { var forumAddPostAttachments = new ForumAttachments({ "attachmentUid" : "{$attachmentUid}", "attachmentsWrapper" : $('#forum_add_post_attachments'), "attachDefaultTitle" : $("#forum_add_post_attach_default_title"), "firstAttachName" : $("#forum_add_post_first_attach_name"), "clearFiles" : $("#forum_add_post_clear_files"), "attachNewFiles" : $("#forum_add_post_attach_files"), "attachNewFile" : $("#forum_add_post_attach_file") }); {if !empty($quoteText) && !empty($quoteId)} $("#forum_view_quote").bind("click", function(e){ e.preventDefault(); OWM.FloatBox({ "title" : "{text key='forum+view_quote'}", "content" : $("#forum_post_attach_wrapper") }); }); $("#forum_view_quote_close").bind("click", function(e){ if(confirm('{text key='forum+delete_quote_confirm'}')) { $(this).parent().remove(); } }); {/if} }); {/script} {/if}