diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-16 16:45:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-16 16:45:06 +0000 |
commit | 4cedecad4d336780aae1e073aa41a4a9c2169c8f (patch) | |
tree | 754ed629eae77a0c9fe4ebafb1b3c80b97609a8a /public | |
parent | 1f991c6a792a76de50d6b373510544e6469751b3 (diff) | |
download | redmine-4cedecad4d336780aae1e073aa41a4a9c2169c8f.tar.gz redmine-4cedecad4d336780aae1e073aa41a4a9c2169c8f.zip |
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
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 7ca0cc4d8..6a30e42e7 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -41,6 +41,14 @@ function setPredecessorFieldsVisibility() { } } +function promptToRemote(text, param, url) { + value = prompt(text + ':'); + if (value) { + new Ajax.Request(url + '?' + param + '=' + value, {asynchronous:true, evalScripts:true}); + return false; + } +} + /* shows and hides ajax indicator */ Ajax.Responders.register({ onCreate: function(){ |