Permalink
Browse files

call confirmation6

  • Loading branch information...
1 parent 3d55fe4 commit 5ca12ae183ee1c12903d15a637f7e9d3f01ec52c @chrismatthieu committed Oct 13, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/views/facebook/index.html.erb
@@ -9,6 +9,7 @@
Welcome <%=@user.name%>! </p>
<p>
+ <%# link_to('test', nil, :onclick => "if(confirm('Call?')){popitup('/telephone/1115105088');}; return false;")%>
<span id="mynumber">
<% if @user.phonenumber %>
@@ -43,7 +44,7 @@
<% if telephoneuser %>
<%# link_to_redbox(image_tag('http://graph.facebook.com/' + friend["id"] + '/picture', :title => friend["name"]), :inline_invite, html_options = {})%>
- <%= link_to(image_tag('http://graph.facebook.com/' + friend["id"] + '/picture', :title => friend["name"]), "/telephone/" + telephoneuser.facebookid, :popup => ['name', 'height=375,width=275,toolbars=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no'], :confirm => 'Call " + friend["name"] + "?')%>
+ <%= link_to(image_tag('http://graph.facebook.com/' + friend["id"] + '/picture', :title => friend["name"]), nil, :onclick => "if(confirm('Call " + friend["name"] + "?')){popitup('/telephone/" + telephoneuser.facebookid + "');}; return false;")%>
<% end %>
<%# image_tag 'http://graph.facebook.com/' + friend["id"] + '/picture', :title => friend["name"]%>

0 comments on commit 5ca12ae

Please sign in to comment.