You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/07/05 21:24:19 UTC

[whimsy] branch master updated: Not used

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 <se...@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