Added onchange event to customer_id

This commit is contained in:
2020-03-28 19:56:42 -04:00
parent cdef838d3e
commit d18a9726ac

View File

@@ -40,10 +40,10 @@ class IssuesFormHookListener < Redmine::Hook::ViewListener
autocomplete_customer_name_customers_path,
:selected => selected_customer,
:update_elements => { :id => '#issue_customer_id', :value => '#issue_customer' }
#,
# :onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)"
customer_id = f.hidden_field :customer_id, :id => "issue_customer_id"
customer_id = f.hidden_field :customer_id,
:id => "issue_customer_id",
:onchange => "updateIssueFrom('/issues/#{context[:issue].id}/edit.js', this)"
if context[:issue].customer
if customer.vehicles