mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-04-03 10:11:59 -04:00
time entry form fixes
- issue selection selects the project accordingly - issue / project selection updates available activities - move project / issue selector to top. more logical this way, since making a selection there may change the available activities
This commit is contained in:
5
app/views/stopwatch_timers/update_form.js.erb
Normal file
5
app/views/stopwatch_timers/update_form.js.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
$('#stopwatch_time_entry_activity_id').html('<%= escape_javascript options_for_select(activity_collection_for_select_options(@time_entry), @time_entry.activity_id) %>');
|
||||
$('#stopwatch_time_entry_issue').html('<%= escape_javascript link_to_issue(@time_entry.issue) if @time_entry.issue.try(:visible?) %>');
|
||||
$('#stopwatch_time_entry_project_id').html('<%= escape_javascript project_tree_options_for_select(Project.allowed_to(:log_time).to_a, :selected => @time_entry.project, :include_blank => true) %>');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user