hicknhack-software / redmine_time_tracker

A time tracker plugin for Redmine
Other
106 stars 32 forks source link

Javascript error while stopping the tracker for no activity set #175

Closed erakis closed 10 years ago

erakis commented 10 years ago

Hi,

I notice a Javascript error while stopping the timer and while the popup is asking us to select the activity. The error comes from this file : app / views / time_trackers / _activity_dialog.html.erb

$.ajax({url: redmine_time_tracker.TimeTracker.base_url() + '/time_trackers/update?key=<%= User.current.api_key %>&time_tracker[activity_id]=' + val, type: 'PUT' });

The error is "redmine_time_tracker" is undefined. Should it be :

$.ajax({url: '/redmine/time_trackers/update?key=<%= User.current.api_key %>&time_tracker[activity_id]=' + val, type: 'PUT' });

Best regards,

jume-dev commented 10 years ago

this is a duplicate of #174.