Commit dd53ad0b by Kim Eunchul

#40585 【TECSS(Biz) webviewer 1.9】【仕様確認】全角スペースのみを入力した際の挙動が異なる

parent 9c538b46
......@@ -1043,7 +1043,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
return;
}
if ($('#txtSearchWs').val() != '' && $('#txtSearchWs').val() != '\"\"') {
if ($('#txtSearchWs').val() != ' ') {
try{
//seperate string
......@@ -1051,7 +1051,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
var myArray = [];
var myQuery;
var myRegExpArr = [];
var textReg = $('#txtSearchWs').val().replace("%", "\\%");
var textReg = $('#txtSearchWs');
do {
var match = myRegexp.exec(textReg);
......
......@@ -269,7 +269,7 @@ HEADER.searchHeaderButtonFunction = function(){
alert('200字以下のテキストを入力してください');
return;
}
if ($('#searchbox-key').val() != '' && $('#searchbox-key').val() != '\"\"') {
if ($('#txtSearchWs').val() != ' ') {
try{
//seperate string
var myRegexp = /[^\s"]+|"([^"]*)"/gi;
......@@ -277,7 +277,7 @@ HEADER.searchHeaderButtonFunction = function(){
var myQuery;
var myRegExpArr = [];
var count = 0;
var textReg = $('#searchbox-key').val().replace("%", "\\%");
var textReg = $('#searchbox-key').val();
do {
var match = myRegexp.exec(textReg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment