Project

General

Profile

Feature #15880 » 15880-add-link-to-new-issue.diff

Go MAEDA, 2016-06-12 05:56

View differences:

lib/redmine.rb (working copy)
end
Redmine::MenuManager.map :project_menu do |menu|
menu.push :new_object, nil, :caption => ' + ',
menu.push :new_object, { :controller => 'issues', :action => 'new', :copy_from => nil }, :caption => ' + ',
:if => Proc.new { |p| Setting.new_item_menu_tab == '2' },
:html => { :id => 'new-object', :onclick => 'toggleNewObjectDropdown(); return false;' }
:html => { :id => 'new-object' }
menu.push :new_issue_sub, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },
:if => Proc.new { |p| Issue.allowed_target_trackers(p).any? },
public/javascripts/application.js (working copy)
$('input[data-disables], input[data-enables], input[data-shows]').each(toggleDisabledOnChange);
}
function toggleNewObjectDropdown() {
var dropdown = $('#new-object + ul.menu-children');
if(dropdown.hasClass('visible')){
dropdown.removeClass('visible');
}else{
dropdown.addClass('visible');
}
}
(function ( $ ) {
// detect if native date input is supported
(11-11/11)