diff options
| -rw-r--r-- | app/views/layouts/admin.html.erb | 1 | ||||
| -rw-r--r-- | public/javascripts/admin_search.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index fb7d6da..e714c28 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | <script> | 16 | <script> |
| 17 | var ADMIN_SEARCH_URL = "<%= admin_search_path %>"; | 17 | var ADMIN_SEARCH_URL = "<%= admin_search_path %>"; |
| 18 | var ADMIN_MENU_SEARCH_URL = "<%= admin_menu_search_path %>"; | 18 | var ADMIN_MENU_SEARCH_URL = "<%= admin_menu_search_path %>"; |
| 19 | var PARAMETERIZE_PREVIEW_URL = "<%= parameterize_preview_nodes_path %>"; | ||
| 19 | </script> | 20 | </script> |
| 20 | </head> | 21 | </head> |
| 21 | 22 | ||
diff --git a/public/javascripts/admin_search.js b/public/javascripts/admin_search.js index 5be5d57..0e70845 100644 --- a/public/javascripts/admin_search.js +++ b/public/javascripts/admin_search.js | |||
| @@ -201,7 +201,7 @@ parent_search = { | |||
| 201 | 201 | ||
| 202 | clearTimeout(parent_search.path_timeout); | 202 | clearTimeout(parent_search.path_timeout); |
| 203 | parent_search.path_timeout = setTimeout(function() { | 203 | parent_search.path_timeout = setTimeout(function() { |
| 204 | $.get("/nodes/parameterize_preview", { title: title }, function(slug) { | 204 | $.get(PARAMETERIZE_PREVIEW_URL, { title: title }, function(slug) { |
| 205 | $("#resulting_path").text(window.location.origin + "/" + (prefix ? prefix + "/" : "") + slug); | 205 | $("#resulting_path").text(window.location.origin + "/" + (prefix ? prefix + "/" : "") + slug); |
| 206 | }); | 206 | }); |
| 207 | }, 300); | 207 | }, 300); |
