[jboss-svn-commits] JBL Code SVN: r7636 - labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Nov 16 05:31:46 EST 2006


Author: unibrew
Date: 2006-11-16 05:31:45 -0500 (Thu, 16 Nov 2006)
New Revision: 7636

Modified:
   labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml
Log:
[JBFORUMS-142] Instant reply box has now working javascript checker.

Modified: labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml
===================================================================
--- labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml	2006-11-16 10:31:36 UTC (rev 7635)
+++ labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml	2006-11-16 10:31:45 UTC (rev 7636)
@@ -719,7 +719,7 @@
         	function checkForm() 
         	{        
 			formErrors = false;    		
-			if (document["post:message"].value.length < 2) 
+			if (document.getElementById('post:message').value.length < 1) 
 			{
 				formErrors = "${resource.Empty_message}";
 			}		
@@ -732,7 +732,7 @@
 			{				
 				return true;
 			}
-			}
+                }
         	</script>
             <h:form id="post">
                <input type="hidden" name="f" value="#{topic.topic.forum.id}"/>




More information about the jboss-svn-commits mailing list