trustie2 welcome search ajax rm post

This commit is contained in:
nigel 2017-02-15 19:40:51 +08:00
parent 8269276efa
commit 8eeba962fa
2 changed files with 1 additions and 3 deletions

View File

@ -100,7 +100,6 @@
content = $('.projects-search-text-field').val(); //获取搜索的内容
content = encodeURIComponent(content);
$.ajax({
type: "post",
contentType: "application/json; charset=utf-8",
url: '/user_traces/search_project?keyword=' + content + "&session_id=" + session_id,
dataType: "json"

View File

@ -67,8 +67,7 @@ RedmineApp::Application.routes.draw do
match 'tabs/show_analysis_tab', to: 'open_source_projects#show_analysis_tab'
#异步添加user行为记录到日志文件
match 'user_traces/search_project', to: 'user_traces#search_project'
# match 'user_traces/:action', to: 'user_traces#:action'
match 'user_traces/:action', to: 'user_traces#:action'
#分页加载关联帖子