Permalink
Browse files

added ajax number update and cal confirmation

  • Loading branch information...
chrismatthieu committed Oct 13, 2010
1 parent 87cb175 commit f2bd80441970bd43e5ba2b863ee742739aba4ef3
@@ -152,6 +152,7 @@ def numberupdate
end
render :update do |page|
# page.alert "phono address: #{@user.phonoaddress}"
+ page.replace_html('mynumber', '<input onclick="RedBox.showInline(\'inline_phone\');" type="button" value="' + session["phone"] + '"/>')
page.RedBox.close();
end
end
@@ -8,7 +8,9 @@
<p><%= image_tag 'http://graph.facebook.com/' + @user.facebookid + '/picture'%>
Welcome <%=@user.name%>! </p>
<p>
-
+
+
+ <span id="mynumber">
<% if @user.phonenumber %>
<% phonenumber = @user.phonenumber %>
<%#button_to_function @user.phonenumber, visual_effect(:toggle_slide, "setnumber", :duration => 0.5) %>
@@ -17,6 +19,7 @@
<%#button_to_function 'Add Your Telephone Number', visual_effect(:toggle_slide, "setnumber", :duration => 0.5) %>
<%= button_to_redbox('Add Your Number', :inline_phone, html_options = {})%>
<% end %>
+ </span>
<%=button_to_function "Friends with Telephone", visual_effect(:toggle_slide, "phonebook", :duration => 0.5) %>
<%#button_to_function "Invite Friends", visual_effect(:toggle_slide, "invitetophonebook", :duration => 0.5) %>
@@ -40,7 +43,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"]), nil, :onclick => "popitup('/telephone/" + telephoneuser.facebookid + "')")%>
+ <%= link_to(image_tag('http://graph.facebook.com/' + friend["id"] + '/picture', :confirm => 'Call ' + friend["name"] + '?', :title => friend["name"]), nil, :onclick => "popitup('/telephone/" + telephoneuser.facebookid + "')")%>
<% end %>
<%# image_tag 'http://graph.facebook.com/' + friend["id"] + '/picture', :title => friend["name"]%>
@@ -37,6 +37,8 @@
Telephone
</h2>
<center>
+ <%=link_to "App Home/Reviews", "http://www.facebook.com/apps/application.php?id=104425026288823" %>
+
<!-- <%=link_to "Terms", "/terms" %> | <%=link_to "Policy", "/policy" %></center> -->
<%#link_to "App Home", "http://www.facebook.com/apps/application.php?id=104425026288823&v=page_getting_started", {:target=>"_parent"} %></p>
<p><br/>

0 comments on commit f2bd804

Please sign in to comment.