]> source.dussan.org Git - redmine.git/commitdiff
Fixed API key display on my account.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Jul 2012 15:14:56 +0000 (15:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Jul 2012 15:14:56 +0000 (15:14 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10091 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/my/_sidebar.html.erb

index c89e6f3b4d65ac3ca3dc27be7883dd46baebb914..4c9270fc7ac4ec1c3422ca4a3fc8629e4fcaeb32 100644 (file)
 <% if Setting.rest_api_enabled? %>
 <h4><%= l(:label_api_access_key) %></h4>
 <div>
-  <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%>
+  <%= link_to_function(l(:button_show), "$('#api-access-key').toggle();")%>
   <pre id='api-access-key' class='autoscroll'><%= h(@user.api_key) %></pre>
 </div>
-<%= javascript_tag("$('api-access-key').hide();") %>
+<%= javascript_tag("$('#api-access-key').hide();") %>
 <p>
 <% if @user.api_token %>
 <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %>