From d75bc5774f1e36a1a6fa1e750a785c07c7d288c0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 8 Dec 2011 20:03:27 +0000 Subject: [PATCH] Changes auto_complete calls to GET requests. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8130 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 2 +- public/javascripts/application.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index d16559d57..33e53ba00 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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' diff --git a/public/javascripts/application.js b/public/javascripts/application.js index aeade1b1c..5cd38e6d0 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -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; },