Commit bf9c6c4e by Kim Eunchul

#40708 【TECSS(Biz) webviewer/Win 1.9】【仕様確認】同じ検索キーワードで動作が異なるものがある

parent 6f254543
......@@ -1059,6 +1059,18 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
myArray.push(match[1] ? match[1] : match[0]);
}
} while (match != null);
for(var i = 1; i < myArray.length; i++){
if(myArray[i] != "OR" && myArray[i] != "or" && myArray[i] != "Or" && myArray[i] != "oR" && myArray[i] != "(" && myArray[i] != ")"){
count++;
}
}
if(count > 5){
alert('語句数は最大5つです');
return;
}
if(myArray[0].charAt(0) == "("){
if(myArray[0] == "("){
myRegExpArr[1] = new RegExp(myArray[1]);
......@@ -1137,11 +1149,6 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}
}
if(count > 5){
alert('語句数は最大5つです');
return;
}
if(CONTENTSEARCH.overClick()){
return;
}
......
......@@ -757,6 +757,18 @@ CONTENTVIEW.searchHandle = function() {
myArray.push(match[1] ? match[1] : match[0]);
}
} while (match != null);
for(var i = 1; i < myArray.length; i++){
if(myArray[i] != "OR" && myArray[i] != "or" && myArray[i] != "Or" && myArray[i] != "oR" && myArray[i] != "(" && myArray[i] != ")"){
count++;
}
}
if(count > 5){
alert('語句数は最大5つです');
return;
}
if(myArray[0].charAt(0) == "("){
if(myArray[0] == "("){
myRegExpArr[1] = new RegExp(myArray[1]);
......
......@@ -288,6 +288,17 @@ HEADER.searchHeaderButtonFunction = function(){
}
} while (match != null);
for(var i = 1; i < myArray.length; i++){
if(myArray[i] != "OR" && myArray[i] != "or" && myArray[i] != "Or" && myArray[i] != "oR" && myArray[i] != "(" && myArray[i] != ")"){
count++;
}
}
if(count > 5){
alert('語句数は最大5つです');
return;
}
if(myArray[0].charAt(0) == "("){
if(myArray[0] == "("){
myRegExpArr[1] = new RegExp(myArray[1]);
......@@ -381,10 +392,6 @@ HEADER.searchHeaderButtonFunction = function(){
return;
}
}
if(count > 5){
alert('語句数は最大5つです');
return;
}
if(HEADER.overClick()){
return;
......
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