Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created October 8, 2009 17:14
Show Gist options
  • Save edavis10/205174 to your computer and use it in GitHub Desktop.
Save edavis10/205174 to your computer and use it in GitHub Desktop.
# Redmine menu that calls a JavaScript function
Redmine::MenuManager.map :project_menu do |menu|
menu.push :javascript, { :controller => 'projects', :action => 'show' }, {:html => {:onclick => 'alert("hi"); return false;', :id => 'f'}}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment