Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
石磊
/
cihai
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a7f41c42
authored
Dec 07, 2017
by
侯昆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加链接
1 parent
388d41da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
serverside/cihai-wechat/src/main/webapp/WEB-INF/jsp/portal/theme/detail.jsp
serverside/cihai-wechat/src/main/webapp/WEB-INF/jsp/portal/theme/detail.jsp
View file @
a7f41c4
...
...
@@ -64,7 +64,7 @@
<div class="word-list">
<%--@elvariable id="wordCounts" type="java.util.List<com.dookay.cihai.core.aip.model.WordCount>"--%>
<c:forEach items="${wordCounts}" var="item">
<div class="item">${item.label}</div>
<div class="item
j_search
">${item.label}</div>
</c:forEach>
</div>
</div>
...
...
@@ -319,6 +319,11 @@
<script src="${ctx}/static/js/special.js"></script>
<script>
var mapData = {};
var relateData = {};
var map = loadMap();
var wordAnalysis = loadRelated();
function loadMap() {
jQuery.get(location.href + "/map", {}, function (data) {
if (data.code == "OK") {
...
...
@@ -383,8 +388,15 @@
loadRelated();
});
var mapData = {};
var relateData = {};
var map = loadMap();
var wordAnalysis = loadRelated();
$('.j_search').click(function(e){
e.preventDefault();
jQuery.get("/home/search", {keyword: $(this).text()}, function (data) {
if (data.code == "OK") {
location.href = data.data;
} else {
myApp.dialog.alert(data.message);
}
})
})
</script>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment