Changes auto_complete calls to GET requests.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8130 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-08 20:03:27 +00:00
parent f385a3e3da
commit d75bc5774f
2 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,7 @@ ActionController::Routing::Routes.draw do |map|
map.resources :queries, :except => [:show]
# Misc issue routes. TODO: move into resources
map.auto_complete_issues '/issues/auto_complete', :controller => 'auto_completes', :action => 'issues'
map.auto_complete_issues '/issues/auto_complete', :controller => 'auto_completes', :action => 'issues', :conditions => { :method => :get }
map.preview_issue '/issues/preview/:id', :controller => 'previews', :action => 'issue' # TODO: would look nicer as /issues/:id/preview
map.issues_context_menu '/issues/context_menu', :controller => 'context_menus', :action => 'issues'
map.issue_changes '/issues/changes', :controller => 'journals', :action => 'index'

View File

@ -293,6 +293,7 @@ function observeParentIssueField(url) {
{ minChars: 3,
frequency: 0.5,
paramName: 'q',
method: 'get',
updateElement: function(value) {
document.getElementById('issue_parent_issue_id').value = value.id;
}});
@ -305,6 +306,7 @@ function observeRelatedIssueField(url) {
{ minChars: 3,
frequency: 0.5,
paramName: 'q',
method: 'get',
updateElement: function(value) {
document.getElementById('relation_issue_to_id').value = value.id;
},