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 fe4f772  Project/icla improve error handling
fe4f772 is described below

commit fe4f772b2cfe33c55f967ee54b23ef5b17eb802d
Author: Craig L Russell <[email protected]>
AuthorDate: Sun Nov 19 17:53:10 2017 -0800

    Project/icla improve error handling
---
 www/project/icla/views/pages/invite.js.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/www/project/icla/views/pages/invite.js.rb 
b/www/project/icla/views/pages/invite.js.rb
index 5f6bca0..44409de 100644
--- a/www/project/icla/views/pages/invite.js.rb
+++ b/www/project/icla/views/pages/invite.js.rb
@@ -226,6 +226,7 @@ class Invite < Vue
   end
 
   def checkVoteLink()
+    document.getElementById('votelink').setCustomValidity('');
     # verify that the link refers to lists.apache.org message on the project 
list
     if not @votelink=~ /.*lists\.apache\.org.*/
       @voteErrorMessage = "Error: Please link to\
@@ -237,6 +238,9 @@ class Invite < Vue
       the [RESULT][VOTE] message sent to the private list."
       @showVoteErrorMessage = true;
     end
+    if @showVoteErrorMessage
+      document.getElementById('votelink').setCustomValidity(@voteErrorMessage);
+    end
   end
 
   def setNoticeLink(event)
@@ -247,6 +251,7 @@ class Invite < Vue
   end
 
   def checkNoticeLink()
+    document.getElementById('noticelink').setCustomValidity('');
     # verify that the link refers to lists.apache.org message on the proper 
list
     if not @noticelink=~ /.*lists\.apache\.org.*/
       @noticeErrorMessage = "Error: please link to\
@@ -263,6 +268,9 @@ class Invite < Vue
       the NOTICE message sent to the incubator private list."
       @showNoticeErrorMessage = true;
     end
+    if @showNoticeErrorMessage
+      
document.getElementById('noticelink').setCustomValidity(@noticeErrorMessage);
+    end
   end
 
   def setInvitation(event)

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to