} var fboardform_submit = (function() { var submitted = false; return function(f) { if (submitted) return false; <?php echo editor_submit('bo_content_head'); ?> <?php echo editor_submit('bo_content_tail'); ?> <?php echo editor_submit('bo_insert_content'); ?> var tmp_title; var tmp_image; tmp_title = "상단"; tmp_image = f.bo_image_head; if (tmp_image.value) { if (!tmp_image.value.toLowerCase().match(/.(gif|jpg|png)$/i)) { alert(tmp_title + "이미지가 gif, jpg, png 파일이 아닙니다."); return false; } } tmp_title = "하단";
if (flen <= 1) { alert("더이상 삭제할 수 없습니다!"); return false; } else { $("#variableFiles li").eq(flen - 1).remove(); } flen--; }); // 포커스 $("#fwrite") .attr("autocomplete", "off") .submit(function() { <?php if ($is_dhtml_editor) { echo editor_submit("wr_content"); } ?> if($("#char_count") && (char_min > 0 || char_max > 0)) { var cnt = parseInt($("#char_count").html()); if (char_min > 0 && char_min > cnt) { alert("내용은 " + char_min + "글자 이상 쓰셔야 합니다."); return false; } else if (char_max > 0 && char_max < cnt) { alert("내용은 " + char_max + "글자 이하로 쓰셔야 합니다."); return false; } }