diff --git a/app/views/hooks/costs/_view_work_package_overview_attributes.html.erb b/app/views/hooks/costs/_view_work_package_overview_attributes.html.erb new file mode 100644 index 0000000000..2a991b1dc6 --- /dev/null +++ b/app/views/hooks/costs/_view_work_package_overview_attributes.html.erb @@ -0,0 +1,22 @@ +<%#-- copyright +OpenProject Costs Plugin + +Copyright (C) 2009 - 2014 the OpenProject Foundation (OPF) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 3. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +++#%> + +<%= javascript_include_tag 'angular/openproject-costs-app.js' %> +<%= javascript_include_tag 'angular/work_packages/directives/summarized-cost-entries-directive.js' %> diff --git a/lib/open_project/costs/hooks/work_package_hook.rb b/lib/open_project/costs/hooks/work_package_hook.rb index e20847121a..ccf725bc8e 100644 --- a/lib/open_project/costs/hooks/work_package_hook.rb +++ b/lib/open_project/costs/hooks/work_package_hook.rb @@ -30,6 +30,8 @@ class OpenProject::Costs::Hooks::WorkPackageHook < Redmine::Hook::ViewListener render_on :view_work_packages_move_bottom, :partial => 'hooks/costs/view_work_packages_move_bottom' + render_on :view_work_package_overview_attributes, partial: 'hooks/costs/view_work_package_overview_attributes' + # Updates the cost object after a move # # Context: