Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 3 years ago
parent
commit
01c15af3a1
1 changed files with 5 additions and 10 deletions
  1. +5
    -10
      public/home/search.js

+ 5
- 10
public/home/search.js View File

@@ -118,6 +118,9 @@ function searchItem(type,sortType){
function search(){
console.log("enter here 1.");
currentSearchKeyword = document.getElementById("keyword_input").value;
if(!isEmpty(currentSearchKeyword)){
currentSearchKeyword = currentSearchKeyword.trim();
}
$('#searchForm').addClass("hiddenSearch");
initPageInfo();
if(!isEmpty(currentSearchKeyword)){
@@ -899,26 +902,18 @@ function getYPosition(e){

$('#keyword_input').on('keypress',function(event){
if(event.keyCode == 13){
var keyword = $('#keyword_input').val();
if(!isEmpty(keyword)){
search();
}
search();
}
});

document.onreadystatechange = function() {
if (document.readyState === "complete") {
var keyword = $('#keyword_input').val();
if(!isEmpty(keyword)){
search();
}
search();
}
}





var LanguagesColor = {
"1C Enterprise": "#814CCC",
"ABAP": "#E8274B",


Loading…
Cancel
Save