myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2633] trunk/app: Dont scroll to the tabs unless


From: noreply
Subject: [myexperiment-hackers] [2633] trunk/app: Dont scroll to the tabs unless the user has clicked on one.
Date: Fri, 8 Jul 2011 09:21:57 -0400 (EDT)

Revision
2633
Author
dtm
Date
2011-07-08 09:21:56 -0400 (Fri, 08 Jul 2011)

Log Message

Dont scroll to the tabs unless the user has clicked on one.

Modified Paths

Diff

Modified: trunk/app/controllers/users_controller.rb (2632 => 2633)


--- trunk/app/controllers/users_controller.rb	2011-07-07 13:55:48 UTC (rev 2632)
+++ trunk/app/controllers/users_controller.rb	2011-07-08 13:21:56 UTC (rev 2633)
@@ -44,8 +44,6 @@
     @lod_rdf  = formatted_user_url(:id => @user.id, :format => 'rdf')
     @lod_xml  = formatted_user_url(:id => @user.id, :format => 'xml')
 
-    @tab = "News" if @tab.nil?
-
     @user.salt = nil
     @user.crypted_password = nil
     

Modified: trunk/app/views/users/show.rhtml (2632 => 2633)


--- trunk/app/views/users/show.rhtml	2011-07-07 13:55:48 UTC (rev 2632)
+++ trunk/app/views/users/show.rhtml	2011-07-08 13:21:56 UTC (rev 2633)
@@ -360,7 +360,7 @@
 
 <% tabnav :user do %>
 
-  <% case @tab; when "News" %>
+  <% case (@tab||"News"); when "News" %>
 
     <%= render :partial => "layouts/news", :locals => { :collection => news(@user, true) } %>
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]