Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1788/head
zouap 3 years ago
parent
commit
7ff94c0ae7
3 changed files with 3 additions and 4 deletions
  1. +0
    -2
      public/home/home.js
  2. +1
    -0
      public/home/search.js
  3. +2
    -2
      templates/explore/search_new.tmpl

+ 0
- 2
public/home/home.js View File

@@ -96,9 +96,7 @@ socket.onmessage = function (e) {
else if(record.OpType == "2"){
actionName = actionName.replace("{oldRepoName}",record.Content);
html += recordPrefix + actionName;
html += " <a href=\"" + getRepoLink(record) + "\" rel=\"nofollow\">" + getRepoLink(record) + "</a>"
console.log("getRepoLink(record)=" + getRepoLink(record));
}
else{
continue;


+ 1
- 0
public/home/search.js View File

@@ -17,6 +17,7 @@ function isEmpty(str){


function search(){
console.log("enter here.");
var keyword = document.getElementById("keyword_input").value;
var page =1;
var pageSize=15;


+ 2
- 2
templates/explore/search_new.tmpl View File

@@ -5,7 +5,7 @@
<div class="ui container">
<div class="ui two column centered grid">
<div class="ui two column centered grid">
<form class="fourteen wide mobile ten wide tablet ten wide computer column ui form ignore-dirty" style="margin-top:1.2rem" action="/">
<form class="fourteen wide mobile ten wide tablet ten wide computer column ui form ignore-dirty" style="margin-top:1.2rem">
<div class="ui fluid action input">
<input name="q" id="keyword_input" value="{{.Keyword}}" placeholder="搜索..." autofocus="">
<input type="hidden" name="topic" value="">
@@ -68,7 +68,7 @@
<div class="ui divider" style="margin-top: 1.25rem;"></div>

<div class="ui very relaxed divided list" id="child_search_item">
</div><!--seach list end-->


Loading…
Cancel
Save