|
From: Jon O. <jon...@us...> - 2008-07-08 22:09:41
|
Update of /cvsroot/mxbb/mx_news/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12759 Modified Files: mx_news_comment_posting.tpl Log Message: Still updating/debugging generic core comments Index: mx_news_comment_posting.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_news/templates/_core/mx_news_comment_posting.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_news_comment_posting.tpl 13 Feb 2008 21:20:38 -0000 1.2 --- mx_news_comment_posting.tpl 8 Jul 2008 22:09:35 -0000 1.3 *************** *** 48,52 **** } - // Replacement for arrayname.length property function getarraysize(thearray) { --- 48,51 ---- *************** *** 73,96 **** } - - function checkForm() { - - formErrors = false; - - if (document.post.message.value.length < 2) { - formErrors = "{L_EMPTY_MESSAGE}"; - } - - if (formErrors) { - alert(formErrors); - return false; - } else { - bbstyle(-1); - //formObj.preview.disabled = true; - //formObj.submit.disabled = true; - return true; - } - } - function emoticon(text) { var txtarea = document.post.message; --- 72,75 ---- *************** *** 133,137 **** } - function bbstyle(bbnumber) { var txtarea = document.post.message; --- 112,115 ---- *************** *** 237,253 **** <script language="javascript"> <!-- ! var postmaxchars = {MESSAGE_LENGTH}; ! function checklength(theform) { ! if (postmaxchars != 0) ! { ! message = ""; ! } ! else { ! message = ""; } ! alert("{L_MSG_LENGTH_1}"+theform.message.value.length+"{L_MSG_LENGTH_2}\n\r\n\r{L_MSG_LENGTH_3}"+postmaxchars+"{L_MSG_LENGTH_4}\n\r\n\r{L_MSG_LENGTH_5}"+(postmaxchars-theform.message.value.length)+"{L_MSG_LENGTH_6}"); } //--> </script> --- 215,253 ---- <script language="javascript"> <!-- ! var postmaxchars = {MESSAGE_LENGTH}; ! function checklength(theform) ! { ! if (postmaxchars != 0) { ! message = ""; ! } ! else ! { ! message = ""; ! } ! alert("{L_MSG_LENGTH_1}"+theform.message.value.length+"{L_MSG_LENGTH_2}\n\r\n\r{L_MSG_LENGTH_3}"+postmaxchars+"{L_MSG_LENGTH_4}\n\r\n\r{L_MSG_LENGTH_5}"+(postmaxchars-theform.message.value.length)+"{L_MSG_LENGTH_6}"); ! } ! ! function checkForm() { ! ! formErrors = false; ! ! if (document.post.message.value.length < 2) { ! formErrors = "{L_EMPTY_MESSAGE}"; ! } ! ! if (formErrors) { ! alert(formErrors); ! return false; ! } else { ! if (bbstyle) { ! bbstyle(-1); } ! //formObj.preview.disabled = true; ! //formObj.submit.disabled = true; ! return true; } + } //--> </script> |