whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Not used
Date Thu, 05 Jul 2018 21:24:19 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb 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 de90e05  Not used
de90e05 is described below

commit de90e055dcf85b69d5edcbd60a05f8e266dc6759
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Jul 5 22:24:18 2018 +0100

    Not used
---
 www/project/icla/views/pages/vote.js.rb | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/www/project/icla/views/pages/vote.js.rb b/www/project/icla/views/pages/vote.js.rb
index 3be5bb6..c9b643e 100644
--- a/www/project/icla/views/pages/vote.js.rb
+++ b/www/project/icla/views/pages/vote.js.rb
@@ -275,30 +275,6 @@ class Vote < Vue
     @disabled = (@vote == '' or (@vote == '-1' and @commentBody.empty?))
   end
 
-  # server side field validations
-  def previewInvitation()
-    data = {
-      iclaname: @iclaname,
-      iclaemail: @iclaemail,
-      pmc: @pmc,
-      votelink: @votelink,
-      noticelink: @noticelink
-    }
-
-    @disabled = true
-    @alert = nil
-    post 'validate', data do |response|
-      @disabled = false
-      @alert = response.error
-      @memberEmail = response.memberEmail
-      @pmcEmail = response.pmcEmail
-      @invitation = response.invitation
-      @token = response.token
-      document.getElementById(response.focus).focus() if response.focus
-      jQuery('#invitation-preview').modal(:show) unless @alert
-    end
-  end
-
   # pretend to send an invitation
   def mockSend()
     # dismiss modal dialog


Mime
View raw message