[jboss-svn-commits] JBL Code SVN: r7635 - labs/jbossforums/branches/forums26/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:37 EST 2006
Author: unibrew
Date: 2006-11-16 05:31:36 -0500 (Thu, 16 Nov 2006)
New Revision: 7635
Modified:
labs/jbossforums/branches/forums26/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/branches/forums26/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml
===================================================================
--- labs/jbossforums/branches/forums26/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml 2006-11-16 10:30:53 UTC (rev 7634)
+++ labs/jbossforums/branches/forums26/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml 2006-11-16 10:31:36 UTC (rev 7635)
@@ -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