|
From: Jon O. <jon...@us...> - 2008-07-08 22:08:57
|
Update of /cvsroot/mxbb/mx_kb/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12138 Modified Files: kb_app.tpl kb_comment_posting.tpl kb_post_body.tpl Log Message: Still updating/debugging generic core comments Index: kb_post_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/_core/kb_post_body.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** kb_post_body.tpl 13 Feb 2008 21:19:04 -0000 1.3 --- kb_post_body.tpl 8 Jul 2008 22:08:51 -0000 1.4 *************** *** 48,52 **** } - // Replacement for arrayname.length property function getarraysize(thearray) { --- 48,51 ---- *************** *** 73,103 **** } - - function checkForm() { - - formErrors = false; - if (document.post.article_name.value.length < 2) { - formErrors = "{L_EMPTY_ARTICLE_NAME}\r"; - } - if (document.post.article_desc.value.length < 2) { - formErrors = "{L_EMPTY_ARTICLE_DESC}\r"; - } - if (document.post.message.value.length < 2) { - formErrors = "{L_EMPTY_MESSAGE}\r"; - } - if (document.post.type_id.value=='select_one') { - formErrors = "{L_EMPTY_TYPE}\r"; - } - 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 ---- *************** *** 140,144 **** } - function bbstyle(bbnumber) { var txtarea = document.post.message; --- 112,115 ---- *************** *** 236,245 **** if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } - //--> </script> <!-- END switch_bbcodes --> ! <!-- BEGIN tinyMCE --> <script language="javascript" type="text/javascript" src="{tinyMCE.PATH}modules/mx_shared/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> --- 207,243 ---- if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> </script> <!-- END switch_bbcodes --> ! <script language="JavaScript" type="text/javascript"> ! <!-- ! function checkForm() { ! formErrors = false; ! if (document.post.article_name.value.length < 2) { ! formErrors = "{L_EMPTY_ARTICLE_NAME}\r"; ! } ! if (document.post.article_desc.value.length < 2) { ! formErrors = "{L_EMPTY_ARTICLE_DESC}\r"; ! } ! if (document.post.message.value.length < 2) { ! formErrors = "{L_EMPTY_MESSAGE}\r"; ! } ! if (document.post.type_id.value=='select_one') { ! formErrors = "{L_EMPTY_TYPE}\r"; ! } ! if (formErrors) { ! alert(formErrors); ! return false; ! } else { ! if (bbstyle) ! { ! bbstyle(-1); ! } ! return true; ! } ! } ! //--> ! </script> <!-- BEGIN tinyMCE --> <script language="javascript" type="text/javascript" src="{tinyMCE.PATH}modules/mx_shared/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> Index: kb_comment_posting.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/_core/kb_comment_posting.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** kb_comment_posting.tpl 13 Feb 2008 21:19:04 -0000 1.3 --- kb_comment_posting.tpl 8 Jul 2008 22:08:51 -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> Index: kb_app.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/_core/kb_app.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** kb_app.tpl 21 May 2008 21:52:15 -0000 1.2 --- kb_app.tpl 8 Jul 2008 22:08:51 -0000 1.3 *************** *** 13,22 **** <script type="text/javascript"> ! function _mxBlock(id, page) { this.block_id = id; this.page_id = page; } ! mxBlock = new _mxBlock('{BLOCK_ID}','{PAGE_ID}'); articlePath = '{ARTICLE_PATH}'; </script> --- 13,23 ---- <script type="text/javascript"> ! function _mxBlock(id, page, start) { this.block_id = id; this.page_id = page; + this.start = start; } ! mxBlock = new _mxBlock('{BLOCK_ID}','{PAGE_ID}','{START}'); articlePath = '{ARTICLE_PATH}'; </script> |