diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/admin_controller.rb | 2 | ||||
| -rw-r--r-- | app/views/layouts/admin.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 1a94a77..d671384 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb | |||
| @@ -40,7 +40,7 @@ class AdminController < ApplicationController | |||
| 40 | format.js do | 40 | format.js do |
| 41 | render( :json => @results.map do |node| | 41 | render( :json => @results.map do |node| |
| 42 | if node | 42 | if node |
| 43 | {:id => node.id, :title => " #{node.title} (#{node.unique_name})", :edit_path => edit_node_path(node)} | 43 | { :id => node.id, :title => node.title, :unique_name => node.unique_name, :node_path => node_path(node) } |
| 44 | end | 44 | end |
| 45 | end | 45 | end |
| 46 | ) | 46 | ) |
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index c1cada3..4536693 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | <div id="search_widget" style="display: none;"> | 46 | <div id="search_widget" style="display: none;"> |
| 47 | <div> | 47 | <div> |
| 48 | <%= form_tag admin_search_path, method: :get do %> | 48 | <%= form_tag admin_search_path, method: :get do %> |
| 49 | <span>Search: </span><%= text_field_tag :search_term %> | 49 | <span>Search: </span><%= text_field_tag :search_term, nil, autocomplete: "off" %> |
| 50 | <% end %> | 50 | <% end %> |
| 51 | </div> | 51 | </div> |
| 52 | <div id="search_results" style="display: none"> | 52 | <div id="search_results" style="display: none"> |
