Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

debugging

  • Loading branch information...
commit 8e4daac3b929f8d2c049dfe52acd46cba62af6c4 1 parent 4e867ff
@brandonmwest authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  index.rb
  2. +1 −1  public/js/default.js
View
3  index.rb
@@ -53,7 +53,8 @@
end
post '/email' do
- body = params[:json];
+ body = params[:json]
+ puts body
Pony.mail(:to => params[:to_address],
:from => "json@iodoctor.net",
View
2  public/js/default.js
@@ -56,6 +56,7 @@ $(function() {
var showEmailForm = function() {
$('#email-modal').modal();
+ $('#email').focus();
}
var hideEmailForm = function() {
@@ -66,7 +67,6 @@ var emailOutput = function(value, settings){
hideEmailForm();
email = $('#email').val();
$('#to_address').val(email);
- console.log($('#to_address'));
formData = $("#outputForm").serialize();
$.post("/email", formData);
return;
Please sign in to comment.
Something went wrong with that request. Please try again.