Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 4 years ago
parent
commit
f8ffeeafb1
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      public/home/search.js

+ 7
- 6
public/home/search.js View File

@@ -253,9 +253,10 @@ function displayPrResult(page,jsonResult,onlyReturnNum,keyword){
$('#pr_total').text(total);
if(!onlyReturnNum){
setActivate("pr_item");
$('#keyword_desc').text(keyword);
$('#obj_desc').text(getLabel(isZh,"search_pr"));
$('#child_total').text(total);
//$('#keyword_desc').text(keyword);
//$('#obj_desc').text(getLabel(isZh,"search_pr"));
//$('#child_total').text(total);
$('#find_title').text(getLabel(isZh,"find_title").replace('{keyword}',keyword).replace('{tablename}',getLabel(isZh,"search_pr")).replace('{total}',total));

setIssueOrPrInnerHtml(data,"pulls");
}
@@ -389,7 +390,7 @@ function displayOrgResult(page,jsonResult,onlyReturnNum,keyword){
//$('#keyword_desc').text(keyword);
//$('#obj_desc').text(getLabel(isZh,"search_org"));
//$('#child_total').text(total);
$('#find_title').text(getLabel(isZh,"find_title").replace('{keyword}',keyword).replace('{tablename}',getLabel(isZh,"search_org")).replace('{total}',total));
$('#find_title').html(getLabel(isZh,"find_title").replace('{keyword}',keyword).replace('{tablename}',getLabel(isZh,"search_org")).replace('{total}',total));

var sortHtml = "";
sortHtml +="<a class=\"" + getActiveItem(40) + "item\" href=\"javascript:searchItem(4,40);\" tabindex=\"-1\" role=\"menuitem\" id=\"menuitem_1\">"+ getLabel(isZh,"search_matched") + "</a>";
@@ -1140,7 +1141,7 @@ var zhCN={
"search_last_page":"末页",
"search_go_to":"前往",
"search_go_page":"页",
"find_title":"找到“<strong class=\"highlight\" id=\"keyword_desc\">{keyword}</strong>”相关{tablename}约为{total}个"
"find_title":"“<strong class=\"highlight\" id=\"keyword_desc\">{keyword}</strong>”相关{tablename}约为{total}个"
}
var esUN={
@@ -1174,7 +1175,7 @@ var zhCN={
"search_last_page":"Last",
"search_go_to":"Go",
"search_go_page":"Page",
"find_title":"Find \"<strong class=\"highlight\" id=\"keyword_desc\">{keyword}</strong>\" related {tablename} maybe {total}"
"find_title":" \"<strong class=\"highlight\" id=\"keyword_desc\">{keyword}</strong>\" related {tablename} maybe {total}"
}



Loading…
Cancel
Save