diff --git a/app/views/my/_sidebar.html.erb b/app/views/my/_sidebar.html.erb index c89e6f3b4..4c9270fc7 100644 --- a/app/views/my/_sidebar.html.erb +++ b/app/views/my/_sidebar.html.erb @@ -21,10 +21,10 @@ <% if Setting.rest_api_enabled? %>

<%= l(:label_api_access_key) %>

- <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%> + <%= link_to_function(l(:button_show), "$('#api-access-key').toggle();")%>
<%= h(@user.api_key) %>
-<%= javascript_tag("$('api-access-key').hide();") %> +<%= javascript_tag("$('#api-access-key').hide();") %>

<% if @user.api_token %> <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %>