Another thought on this, since it would be nice to have this feature work both on a client and on the whimsy service.
Maybe the “alert” could create an email message that can be edited to suit (similar to the commit message in SA tool) and once it’s perfect, the (send) button would send the completed, edited message to the email system to be sent. I’ll experiment with the alert dialog box to see what is involved. Craig > On Nov 16, 2015, at 5:44 PM, Sam Ruby <[email protected]> wrote: > > 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 Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:[email protected] P.S. A good JDO? O, Gasp!
