Authored by 陈峰

Merge branch 'hotfix/search' into 'release/10.10'

fix search query key



See merge request !1551
... ... @@ -244,13 +244,14 @@ cHammer.on('tap', function() {
$search.on('touchend', function() {
let $buriedpoint = $form.find('.buriedpoint');
let inputQuery = $buriedpoint.val();
if ($buriedpoint.val() === '') {
$buriedpoint.val($('#default-terms').val());
if (inputQuery === '') {
inputQuery = $('#default-terms').val();
}
// 保存搜索的内容
writeSearch.setHistoryValFun($buriedpoint.val());
writeSearch.setHistoryValFun(inputQuery);
if (security.hasDangerInput()) {
return false;
... ... @@ -261,15 +262,14 @@ $search.on('touchend', function() {
op: 'YB_KEYWORD_SEARCH_C',
param: JSON.stringify({
C_ID: C_ID,
KEYWORD: $buriedpoint.val(),
KEYWORD: inputQuery,
POS_ID: 0,
FLR_INDEX: 0
})
}, true);
}
$(this).closest('form').submit();
return false;
goSearch(inputQuery);
});
// 初始化历史搜索的内容
... ...