From f6c1854228f1789cf36b1007c3357d5d2c9235a1 Mon Sep 17 00:00:00 2001 From: speedy32129 Date: Thu, 28 Mar 2019 19:04:44 -0400 Subject: [PATCH] Update _update_menu.html.erb fix #30 --- app/views/time_loggers/_update_menu.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/time_loggers/_update_menu.html.erb b/app/views/time_loggers/_update_menu.html.erb index 355e563..2e101ca 100644 --- a/app/views/time_loggers/_update_menu.html.erb +++ b/app/views/time_loggers/_update_menu.html.erb @@ -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); },