summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-11 06:26:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-11 06:26:03 +0000
commit3da6062d7eb55f98c61e42216915e0e0f1d85af1 (patch)
treea27fb9cf65973ba6df7556f59ab9064b2ca0c985 /lib
parent5adc6a5c9f59946d6ac0588cc9052012784d7b0a (diff)
downloadredmine-3da6062d7eb55f98c61e42216915e0e0f1d85af1.tar.gz
redmine-3da6062d7eb55f98c61e42216915e0e0f1d85af1.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine.rb3
1 files changed, 2 insertions, 1 deletions
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,