Commit d75162a0 by Kim Eunchul

#40365【TECSS(Biz) webviewer 1.9】一覧画面で検索時にエラーを起こすキーワードがある

parent bc1a3058
...@@ -1044,7 +1044,6 @@ CONTENTSEARCH.searchEventButtonFunction = function() { ...@@ -1044,7 +1044,6 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
} }
if ($('#txtSearchWs').val() != '' && $('#txtSearchWs').val() != '\"\"') { if ($('#txtSearchWs').val() != '' && $('#txtSearchWs').val() != '\"\"') {
console.log($('#txtSearchWs').val());
try{ try{
//seperate string //seperate string
...@@ -1061,7 +1060,6 @@ CONTENTSEARCH.searchEventButtonFunction = function() { ...@@ -1061,7 +1060,6 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
myArray.push(match[1] ? match[1] : match[0]); myArray.push(match[1] ? match[1] : match[0]);
} }
} while (match != null); } while (match != null);
console.log(myArray);
if(myArray[0].charAt(0) == "("){ if(myArray[0].charAt(0) == "("){
if(myArray[0] == "("){ if(myArray[0] == "("){
myRegExpArr[1] = new RegExp(myArray[1]); myRegExpArr[1] = new RegExp(myArray[1]);
...@@ -1158,9 +1156,6 @@ CONTENTSEARCH.searchEventButtonFunction = function() { ...@@ -1158,9 +1156,6 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
if (body == 'checked') { if (body == 'checked') {
searchDivision = $('#searchbox-body').val(); searchDivision = $('#searchbox-body').val();
} }
//searchText = searchText.replace('%','\\%');
//searchText = searchText.replace('""','" "');
console.log('output text2: ' +searchText);
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
var sid = ClientData.userInfo_sid(); var sid = ClientData.userInfo_sid();
......
...@@ -736,7 +736,6 @@ CONTENTVIEW.searchHandle = function() { ...@@ -736,7 +736,6 @@ CONTENTVIEW.searchHandle = function() {
} }
if ($('#txtSearch').val() != '' && $('#txtSearch').val() != '\"\"') { if ($('#txtSearch').val() != '' && $('#txtSearch').val() != '\"\"') {
console.log($('#txtSearch').val());
var dataStored = CONTENTVIEW_GENERAL.arrThumbnailsLoaded; var dataStored = CONTENTVIEW_GENERAL.arrThumbnailsLoaded;
var contentPage = CONTENTVIEW_GENERAL.dataWebContentPage.pages; var contentPage = CONTENTVIEW_GENERAL.dataWebContentPage.pages;
var sPageNo = []; var sPageNo = [];
...@@ -758,7 +757,6 @@ CONTENTVIEW.searchHandle = function() { ...@@ -758,7 +757,6 @@ CONTENTVIEW.searchHandle = function() {
myArray.push(match[1] ? match[1] : match[0]); myArray.push(match[1] ? match[1] : match[0]);
} }
} while (match != null); } while (match != null);
console.log(myArray);
if(myArray[0].charAt(0) == "("){ if(myArray[0].charAt(0) == "("){
if(myArray[0] == "("){ if(myArray[0] == "("){
myRegExpArr[1] = new RegExp(myArray[1]); myRegExpArr[1] = new RegExp(myArray[1]);
......
...@@ -270,7 +270,6 @@ HEADER.searchHeaderButtonFunction = function(){ ...@@ -270,7 +270,6 @@ HEADER.searchHeaderButtonFunction = function(){
return; return;
} }
if ($('#searchbox-key').val() != '' && $('#searchbox-key').val() != '\"\"') { if ($('#searchbox-key').val() != '' && $('#searchbox-key').val() != '\"\"') {
console.log($('#searchbox-key').val());
try{ try{
//seperate string //seperate string
var myRegexp = /[^\s"]+|"([^"]*)"/gi; var myRegexp = /[^\s"]+|"([^"]*)"/gi;
...@@ -287,7 +286,6 @@ HEADER.searchHeaderButtonFunction = function(){ ...@@ -287,7 +286,6 @@ HEADER.searchHeaderButtonFunction = function(){
myArray.push(match[1] ? match[1] : match[0]); myArray.push(match[1] ? match[1] : match[0]);
} }
} while (match != null); } while (match != null);
console.log(myArray);
if(myArray[0].charAt(0) == "("){ if(myArray[0].charAt(0) == "("){
if(myArray[0] == "("){ if(myArray[0] == "("){
myRegExpArr[1] = new RegExp(myArray[1]); myRegExpArr[1] = new RegExp(myArray[1]);
...@@ -403,9 +401,6 @@ HEADER.searchHeaderButtonFunction = function(){ ...@@ -403,9 +401,6 @@ HEADER.searchHeaderButtonFunction = function(){
{ {
searchDivision = $('#searchbox-body').val(); searchDivision = $('#searchbox-body').val();
} }
//searchText = searchText.replace('%','\\%');
//searchText = searchText.replace('""','" "');
console.log('output text1: ' +searchText);
ClientData.searchCond_searchText(searchText); ClientData.searchCond_searchText(searchText);
ClientData.searchCond_searchDivision(searchDivision); ClientData.searchCond_searchDivision(searchDivision);
//window.location = COMMON.ScreenIds.ContentSearch; //window.location = COMMON.ScreenIds.ContentSearch;
......
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