Load OP Costs JS files into WP view

pull/6827/head
Hagen Schink 10 years ago
parent f23dee2c9d
commit 59e87837ca
  1. 22
      app/views/hooks/costs/_view_work_package_overview_attributes.html.erb
  2. 2
      lib/open_project/costs/hooks/work_package_hook.rb

@ -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' %>

@ -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:

Loading…
Cancel
Save