Authored by OF1706

search bug

... ... @@ -895,7 +895,7 @@ function actionAddKeyWords() {
function searchSuggestHistory() {
var param = {
return_type: 'jsonp',
query: encodeURIComponent(window.queryString().query.replace(/\+/ig, ' '))
query: encodeURIComponent((window.queryString().query || '').replace(/\+/ig, ' '))
};
if ($searchKey.attr('alt')) {
... ... @@ -981,9 +981,6 @@ function searchSuggestRecommend(channel, key) {
*/
$(function() {
searchSuggestRecommend();
if (location.href.indexOf('www.yohobuy.com') < 0) {
searchSuggestHistory();
}
});
actionCover();
... ...