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; },