From e3c0085ee317c0c8481972e1d5536d08a40ef8a4 Mon Sep 17 00:00:00 2001 From: Pavlos Ratis Date: Sat, 16 Feb 2013 23:02:58 +0000 Subject: [PATCH] fixed scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding # in the href when you click in the 'Details' it takes you to the topĀ and then you should scroll down in order to see the user's Details. Adding `javascript: void(0)` instead of # we fix scrolling because it doesn't take you to the top. --- app/views/admin/users/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml index bd0d5f64..fe72cd30 100644 --- a/app/views/admin/users/index.html.haml +++ b/app/views/admin/users/index.html.haml @@ -50,7 +50,7 @@ = f.action :submit, :as => :button, :button_html => {:value => "Save", :class => "btn btn-primary"} =link_to "Modify Roles", "#", "data-toggle" => "modal", "data-target" => "#user-role-selection-#{user.id}}" %td - =link_to "Details", "#", :class => "user-details-popover", "data-trigger" => "click", "data-placement" => "bottom", + =link_to "Details", "javascript: void(0)", :class => "user-details-popover", "data-trigger" => "click", "data-placement" => "bottom", "data-html" => "true", "data-content" => user.popup_details, "data-original-title" => ""