Commit 53d658b9 by Kim Eunchul

#40414 【TECSS(Biz) webviewer 1.9】検索キーワードを6個指定できる

parent 2d817a35
......@@ -1033,6 +1033,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
var content = $('#main-content').attr('checked');
var tag = $('#main-tag').attr('checked');
var body = $('#main-body').attr('checked');
var count = 0;
var offset = 0;
var limit = CONTENTSEARCH.returnNumberDispRecordForList();
......@@ -1041,14 +1042,16 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
alert('200字以下のテキストを入力してください');
return;
}
if ($('#txtSearch').val() != '') {
if ($('#txtSearchWs').val() != '') {
try{
//seperate string
var myRegexp = /[^\s"]+|"([^"]*)"/gi;
var myArray = [];
var myQuery;
var myRegExpArr = [];
var count = 0;
do {
var match = myRegexp.exec($('#txtSearchWs').val());
......@@ -1136,7 +1139,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
return;
}
}
if(count > 5){
alert('語句数は最大5つです');
return;
......
......@@ -264,12 +264,12 @@ HEADER.searchHeaderButtonFunction = function(){
var searchDivision;
var searchText = $('#searchbox-key').val();
if(searchText.length > 200){
alert('200字以下のテキストを入力してください');
return;
}
if ($('#txtSearch').val() != '') {
if ($('#searchbox-key').val() != '') {
try{
//seperate string
var myRegexp = /[^\s"]+|"([^"]*)"/gi;
......
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