| @@ -118,6 +118,9 @@ function searchItem(type,sortType){ | |||||
| function search(){ | function search(){ | ||||
| console.log("enter here 1."); | console.log("enter here 1."); | ||||
| currentSearchKeyword = document.getElementById("keyword_input").value; | currentSearchKeyword = document.getElementById("keyword_input").value; | ||||
| if(!isEmpty(currentSearchKeyword)){ | |||||
| currentSearchKeyword = currentSearchKeyword.trim(); | |||||
| } | |||||
| $('#searchForm').addClass("hiddenSearch"); | $('#searchForm').addClass("hiddenSearch"); | ||||
| initPageInfo(); | initPageInfo(); | ||||
| if(!isEmpty(currentSearchKeyword)){ | if(!isEmpty(currentSearchKeyword)){ | ||||
| @@ -899,26 +902,18 @@ function getYPosition(e){ | |||||
| $('#keyword_input').on('keypress',function(event){ | $('#keyword_input').on('keypress',function(event){ | ||||
| if(event.keyCode == 13){ | if(event.keyCode == 13){ | ||||
| var keyword = $('#keyword_input').val(); | |||||
| if(!isEmpty(keyword)){ | |||||
| search(); | |||||
| } | |||||
| search(); | |||||
| } | } | ||||
| }); | }); | ||||
| document.onreadystatechange = function() { | document.onreadystatechange = function() { | ||||
| if (document.readyState === "complete") { | if (document.readyState === "complete") { | ||||
| var keyword = $('#keyword_input').val(); | |||||
| if(!isEmpty(keyword)){ | |||||
| search(); | |||||
| } | |||||
| search(); | |||||
| } | } | ||||
| } | } | ||||
| var LanguagesColor = { | var LanguagesColor = { | ||||
| "1C Enterprise": "#814CCC", | "1C Enterprise": "#814CCC", | ||||
| "ABAP": "#E8274B", | "ABAP": "#E8274B", | ||||