|
From: Jon O. <jon...@us...> - 2008-07-08 22:09:10
|
Update of /cvsroot/mxbb/mx_linkdb/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12479 Modified Files: link_add.tpl link_comment_posting.tpl Log Message: Still updating/debugging generic core comments Index: link_add.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/templates/_core/link_add.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** link_add.tpl 9 Sep 2007 20:09:49 -0000 1.1 --- link_add.tpl 8 Jul 2008 22:09:05 -0000 1.2 *************** *** 9,13 **** } ! if({ALLOW_GUEST} && document.form.post_username.value == "") { if(error_msg != "") --- 9,13 ---- } ! if("{ALLOW_GUEST}" && document.form.post_username.value == "") { if(error_msg != "") Index: link_comment_posting.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/templates/_core/link_comment_posting.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** link_comment_posting.tpl 13 Feb 2008 21:20:28 -0000 1.3 --- link_comment_posting.tpl 8 Jul 2008 22:09:05 -0000 1.4 *************** *** 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; --- 73,76 ---- *************** *** 133,137 **** } - function bbstyle(bbnumber) { var txtarea = document.post.message; --- 113,116 ---- *************** *** 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> --- 216,254 ---- <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> |