 <? global $vis_language;?>
<form class="form-horizontal" method="post" enctype="multipart/form-data" name="vis_new_release_form" id="vis_release_post_content_form_<? echo $releases_details['release_id']; ?>">
	<div class="form-group">
		<div class="col-sm-12">
			<textarea name="vis_release_desc" id="vis_release_desc_<? echo $releases_details['release_id']; ?>" class="form-control"><? echo stripslashes($releases_details['description']); ?></textarea>
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-12">		    
			<input name="vis_release_id" type="hidden" value="<? echo $releases_details['release_id']; ?>" />
			<span class="btn btn-default" onclick="$('#vis_release_post_content_text_<? echo $releases_details['release_id']; ?>').show(); $('#vis_release_post_content_edit_<? echo $releases_details['release_id']; ?>').hide();"><? echo $vis_language['TXTDISCARD']; ?></span>
			<span class="btn btn-primary m-l-xs" onclick="$(this).visExecution('submit_form',{'vis_module':'releases', 'vis_operation':'update_release_description', 'vis_form':'vis_release_post_content_form_<? echo $releases_details['release_id']; ?>'});"><? echo $vis_language['TXTUPDATE']; ?></span>
        </div>
    </div>
</form>
<script>
$('#vis_release_post_content_text_<? echo $releases_details['release_id']; ?>').hide();
<? if(!defined('VIS_HTML_EDITOR') || VIS_HTML_EDITOR==1) { ?>    
	$(function(){
		$('#vis_release_desc_<? echo $releases_details['release_id']; ?>').redactor({
			buttonSource: true,
			minHeight: 180, // pixels
			maxHeight: 180,
			imageUpload: "index.php?vis_tmpst="+new Date().getTime()+"&vis_module=ticket&vis_operation=upload_file&vis_static_area=editor_image_upload",
            imageUploadParam: 'files',
			focus: true,
			plugins: ['source'],
			deniedTags: ['html', 'head', 'link', 'body', 'meta', 'script','applet']
		});
	});
<? } ?>
</script>
