From 3da6062d7eb55f98c61e42216915e0e0f1d85af1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 11 Jun 2016 06:26:03 +0000 Subject: Keep the "new object" drop down open when the + sign was clicked (#15880). For touch displays where :hover does not exist. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15504 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/redmine.rb b/lib/redmine.rb index bed89ef68..d75cfd336 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -226,7 +226,8 @@ Redmine::MenuManager.map :admin_menu do |menu| end Redmine::MenuManager.map :project_menu do |menu| - menu.push :new_object, nil, :caption => ' + ' + menu.push :new_object, nil, :caption => ' + ', + :html => { :id => 'new-object', :onclick => 'toggleNewObjectDropdown(); return false;' } menu.push :new_issue_category, {:controller => 'issue_categories', :action => 'new'}, :param => :project_id, :caption => :label_issue_category_new, :parent => :new_object menu.push :new_version, {:controller => 'versions', :action => 'new'}, :param => :project_id, :caption => :label_version_new, -- cgit v1.2.3