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

View File

@@ -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(){