Commit 78373de5 by Kim Eunchul

#39714 andやor検索(ウェブ版error処理)

parent a962c89f
...@@ -1094,7 +1094,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() { ...@@ -1094,7 +1094,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
myQuery += ' )'; myQuery += ' )';
}else{ }else{
if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){ if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){
myRegExpArr[i] = new RegExp(myArray[i].slice(-1)); myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
myQuery += ' || true )'; myQuery += ' || true )';
}else{ }else{
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1)); myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
......
...@@ -793,7 +793,7 @@ CONTENTVIEW.searchHandle = function() { ...@@ -793,7 +793,7 @@ CONTENTVIEW.searchHandle = function() {
myQuery += ' )'; myQuery += ' )';
}else{ }else{
if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){ if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){
myRegExpArr[i] = new RegExp(myArray[i].slice(-1)); myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
myQuery += ' || myRegExpArr[' + i + '].test(contentPage[nIndex].pageText) )'; myQuery += ' || myRegExpArr[' + i + '].test(contentPage[nIndex].pageText) )';
}else{ }else{
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1)); myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
...@@ -823,10 +823,10 @@ CONTENTVIEW.searchHandle = function() { ...@@ -823,10 +823,10 @@ CONTENTVIEW.searchHandle = function() {
} }
} }
// }catch(error){ }catch(error){
// alert('正しくない検索です'); alert('正しくない検索です');
// return; return;
// } }
if (sPageNo.length > 0) { if (sPageNo.length > 0) {
//title start //title start
......
...@@ -322,7 +322,7 @@ HEADER.searchHeaderButtonFunction = function(){ ...@@ -322,7 +322,7 @@ HEADER.searchHeaderButtonFunction = function(){
myQuery += ' )'; myQuery += ' )';
}else{ }else{
if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){ if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){
myRegExpArr[i] = new RegExp(myArray[i].slice(-1)); myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
myQuery += ' || true )'; myQuery += ' || true )';
}else{ }else{
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1)); myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
......
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