On Mon, Jan 29, 2018 at 3:53 PM, Craig Russell <[email protected]> wrote:
> Hi,
>
> I pushed a roughed-in discuss server handling and cannot get the modal dialog 
> to show.
>
> In project/icla/views/forms/invite.js.rb around line 291 is code mostly 
> copied from 247 which is the modal dialog for invite, which does work.
>
> There is some magic here because the jQuery calls for #discussion-preview 
> which doesn't exist. But the jQuery for #invitation-preview doesn't exist 
> either but it works.
>
> Any ideas?

invitation-preview works because there is a hidden form
invitation_preview! defined on line 247 of invite.js.rb.

discussion_preview! is defined on line 291; but that definition is
outside of the render method, which ends on line 287.  Move that end
statement after the definition of the form (and in the process, indent
the code aligning it with the previous form), and the code will work.

- Sam Ruby

> Thanks,
>
> Craig
>
> Craig L Russell
> [email protected]
> 1220 University Ave
> San Jose, CA 95126
>
>
>
>
>

Reply via email to