Added a link to add a new category when creating or editing an issue.

The user is prompted for the category name. The new category is created and the drop-down list updated using an ajax call.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@648 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-08-16 16:45:06 +00:00
parent 1f991c6a79
commit 4cedecad4d
5 changed files with 35 additions and 4 deletions
+5
View File
@@ -77,6 +77,11 @@ module ApplicationHelper
}))
end
def prompt_to_remote(name, text, param, url, html_options = {})
html_options[:onclick] = "promptToRemote('#{text}', '#{param}', '#{url_for(url)}'); return false;"
link_to name, {}, html_options
end
def format_date(date)
return nil unless date
@date_format_setting ||= Setting.date_format.to_i