On Mon, Nov 16, 2015 at 8:39 PM, Craig L Russell
<[email protected]> wrote:
> I’ve added a button in the issue column.
>
> I think I’ll keep the email column. It’s useful.
>
> Next I need to think about what the (email) button needs to do. Definitely 
> not send email, at least not yet. Rather, it should construct a message and 
> call the email client with the proposed contents of the email. So for now, 
> this isn’t really a remote operation. It would need to run on a machine with 
> an email client.
>
> My idea is that with the email open in the client, I could add some 
> information and then send the message.

That's exactly what "launch_email_client" in the following code does:

https://github.com/rubys/whimsy-agenda/blob/master/views/buttons/email.js.rb

Change the values of destination, subject, and body.  Copy the
window.location line verbatim.  You don't need a separate method
(def...end), simply inline this code.

A few messages back, I showed how to add an event listener to buttons.

> The email will be different for different types of issues.

"if" statements are your friend. :-)

> Craig

- Sam Ruby

Reply via email to