From a92b92e501be54513e1f6c65cc26b729f4323cc0 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 25 Nov 2017 16:31:50 +0000 Subject: Add right-click context menu to gantt bars (#10485). Contributed by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17031 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index fc3a6c073..b859c6c7d 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -842,6 +842,7 @@ module Redmine s = view.content_tag(:span, view.render_issue_tooltip(object).html_safe, :class => "tip") + s += view.content_tag(:input, nil, :type => 'checkbox', :name => 'ids[]', :value => object.id, :style => 'display:none;', :class => 'toggle-selection') style = "" style << "position: absolute;" style << "top:#{params[:top]}px;" @@ -850,7 +851,7 @@ module Redmine style << "height:12px;" output << view.content_tag(:div, s.html_safe, :style => style, - :class => "tooltip") + :class => "tooltip hascontextmenu") end @lines << output output -- cgit v1.2.3