You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by Craig Russell <ap...@gmail.com> on 2018/01/13 05:54:27 UTC
Small problem with project/icla/vote
I want the comment block to be inactive when the form is first shown, and then active only when the vote is -1.
Line 19 of views/pages/vote.js.rb enables the comment block.
If I change line 19 to initialize the @showComment to false, the comment block does not display but the radio buttons (line 37) don't work properly. They change but never call their onClick function.
Any ideas?
Craig L Russell
Secretary, Apache Software Foundation
clr@apache.org http://db.apache.org/jdo
Re: Small problem with project/icla/vote
Posted by Sam Ruby <ru...@intertwingly.net>.
On Sat, Jan 13, 2018 at 12:54 AM, Craig Russell <ap...@gmail.com> wrote:
> I want the comment block to be inactive when the form is first shown, and then active only when the vote is -1.
>
> Line 19 of views/pages/vote.js.rb enables the comment block.
>
> If I change line 19 to initialize the @showComment to false, the comment block does not display but the radio buttons (line 37) don't work properly. They change but never call their onClick function.
>
> Any ideas?
I encourage you to look at the JavaScript console. Essentially this
is a variant of the same problem as last time.
By the way - the stack traceback not being as useful as it could be is
a known problem. I provided a pull request against Vue.js to fix
this, and I see that they have picked it up. I'll likely upgrade all
of the whimsy tools to the latest Vue.js after this week's board
meeting, and retire the last bit of React.js code that is left.
> Craig L Russell
> Secretary, Apache Software Foundation
> clr@apache.org http://db.apache.org/jdo
- Sam Ruby