Skip to content

Commit

Permalink
Update _update_menu.html.erb
Browse files Browse the repository at this point in the history
fix #30
  • Loading branch information
speedy32129 committed Mar 28, 2019
1 parent d3abe82 commit f6c1854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/time_loggers/_update_menu.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ the time tracker menu item using an AJAX request to retrieve the data
function updateTimeLoggerMenu() {
$.ajax({
url:"<%=url_for :controller => '/time_loggers',:action => 'render_menu' %>",
data:({<%= (@project.nil? ? nil : "project_id:#{@project.id},") %><%= (@issue.nil? ? nil : "issue_id:#{@issue.id}") %> }),
cache:false,
data:({<%= (@project.nil? ? nil : "project_id:#{@project.id}") %><%= ((@issue.nil? or @issue.id.nil?) ? nil : ", issue_id:#{@issue.id}") %>}),
cache:false,
success: function(data){
$('#time-logger-menu').html(data);
},
Expand Down

0 comments on commit f6c1854

Please sign in to comment.