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/03 23:23:27 UTC
[whimsy] branch master updated: Use older syntax so Eclipse plugin
is happy
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 2969bb1 Use older syntax so Eclipse plugin is happy
2969bb1 is described below
commit 2969bb1f729dedafb9527e4e0d02da1fd56442e1
Author: Sebb <se...@apache.org>
AuthorDate: Wed Jul 4 00:23:26 2018 +0100
Use older syntax so Eclipse plugin is happy
---
www/project/icla/views/pages/vote.js.rb | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/www/project/icla/views/pages/vote.js.rb b/www/project/icla/views/pages/vote.js.rb
index d31f027..3e45d8b 100644
--- a/www/project/icla/views/pages/vote.js.rb
+++ b/www/project/icla/views/pages/vote.js.rb
@@ -52,25 +52,25 @@ class Vote < Vue
_div.form_group.vote do
_label do
_input type: 'radio', name: 'vote', value: '+1',
- onClick: -> {@vote = '+1'; @showComment = false; checkValidity()}
+ onClick: lambda {@vote = '+1'; @showComment = false; checkValidity()}
_span " +1 approve "
end
_p
_label do
_input type: 'radio', name: 'vote', value: '+0',
- onClick: -> {@vote = '+0'; @showComment = false; checkValidity()}
+ onClick: lambda {@vote = '+0'; @showComment = false; checkValidity()}
_span " +0 don't care "
end
_p
_label do
_input type: 'radio', name: 'vote', value: '-0',
- onClick: -> {@vote = '-0'; @showComment = false; checkValidity()}
+ onClick: lambda {@vote = '-0'; @showComment = false; checkValidity()}
_span " -0 don't care "
end
_p
_label do
_input type: 'radio', name: 'vote', value: '-1',
- onClick: -> {@vote = '-1'; @showComment = true; checkValidity()}
+ onClick: lambda {@vote = '-1'; @showComment = true; checkValidity()}
_span " -1 disapprove, because... "
end
_p
@@ -156,7 +156,7 @@ class Vote < Vue
# draft invitation email
_div.form_group do
- _label for: 'invitation'
+ _label :for => 'invitation'
_textarea.form_control.invitation! value: @invitation, rows: 12,
onChange: self.setInvitation # does not appear to work
end