You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cl...@apache.org on 2018/01/12 22:37:27 UTC

[whimsy] branch master updated: add validity for discuss form

This is an automated email from the ASF dual-hosted git repository.

clr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 42d5d3a  add validity for discuss form
42d5d3a is described below

commit 42d5d3a37c8d4eb70232e0c3638f6e716c58c387
Author: Craig L Russell <cr...@oracle.com>
AuthorDate: Fri Jan 12 14:37:18 2018 -0800

    add validity for discuss form
---
 www/project/icla/views/pages/discuss.js.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/project/icla/views/pages/discuss.js.rb b/www/project/icla/views/pages/discuss.js.rb
index 5b84693..65aec56 100644
--- a/www/project/icla/views/pages/discuss.js.rb
+++ b/www/project/icla/views/pages/discuss.js.rb
@@ -33,7 +33,7 @@ class Discuss < Vue
     _div.form_group do
       _label "Comment from " + @user, for: 'discussBody'
       _textarea.form_control rows: 4,
-      placeholder: 'new comment',
+      required: true, placeholder: 'new comment',
       name: 'discussBody', value: @discussBody,
       onChange: self.setDiscussBody
     end
@@ -118,6 +118,7 @@ class Discuss < Vue
 
   def setDiscussBody(event)
     @discussBody = event.target.value
+    checkValidity()
   end
 
   #

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].