Commit dd53ad0b by Kim Eunchul

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

parent 9c538b46
...@@ -1043,7 +1043,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() { ...@@ -1043,7 +1043,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
return; return;
} }
if ($('#txtSearchWs').val() != '' && $('#txtSearchWs').val() != '\"\"') { if ($('#txtSearchWs').val() != ' ') {
try{ try{
//seperate string //seperate string
...@@ -1051,7 +1051,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() { ...@@ -1051,7 +1051,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
var myArray = []; var myArray = [];
var myQuery; var myQuery;
var myRegExpArr = []; var myRegExpArr = [];
var textReg = $('#txtSearchWs').val().replace("%", "\\%"); var textReg = $('#txtSearchWs');
do { do {
var match = myRegexp.exec(textReg); var match = myRegexp.exec(textReg);
......
...@@ -269,7 +269,7 @@ HEADER.searchHeaderButtonFunction = function(){ ...@@ -269,7 +269,7 @@ HEADER.searchHeaderButtonFunction = function(){
alert('200字以下のテキストを入力してください'); alert('200字以下のテキストを入力してください');
return; return;
} }
if ($('#searchbox-key').val() != '' && $('#searchbox-key').val() != '\"\"') { if ($('#txtSearchWs').val() != ' ') {
try{ try{
//seperate string //seperate string
var myRegexp = /[^\s"]+|"([^"]*)"/gi; var myRegexp = /[^\s"]+|"([^"]*)"/gi;
...@@ -277,7 +277,7 @@ HEADER.searchHeaderButtonFunction = function(){ ...@@ -277,7 +277,7 @@ HEADER.searchHeaderButtonFunction = function(){
var myQuery; var myQuery;
var myRegExpArr = []; var myRegExpArr = [];
var count = 0; var count = 0;
var textReg = $('#searchbox-key').val().replace("%", "\\%"); var textReg = $('#searchbox-key').val();
do { do {
var match = myRegexp.exec(textReg); 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