Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
05dc286c
Commit
05dc286c
authored
Oct 27, 2020
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#39714 andやor検索(or条件修正)
parent
cfede9da
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
abvw/js/contentsearch.js
+5
-5
abvw/js/contentview.js
+5
-5
abvw/js/header.js
+5
-5
No files found.
abvw/js/contentsearch.js
View file @
05dc286c
...
@@ -1074,17 +1074,17 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
...
@@ -1074,17 +1074,17 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}
}
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
if
(
myArray
[
i
]
==
"OR"
||
myArray
[
i
]
==
"or"
){
if
(
myArray
[
i
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myQuery
+=
' || ('
;
myQuery
+=
' || ('
;
}
else
{
}
else
{
myQuery
+=
' && ('
;
myQuery
+=
' && ('
;
}
}
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' || ( true'
;
myQuery
+=
' || ( true'
;
count
++
;
count
++
;
...
@@ -1098,7 +1098,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
...
@@ -1098,7 +1098,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
if
(
myArray
[
i
]
==
")"
){
if
(
myArray
[
i
]
==
")"
){
myQuery
+=
' )'
;
myQuery
+=
' )'
;
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' || true )'
;
myQuery
+=
' || true )'
;
count
++
;
count
++
;
...
@@ -1109,7 +1109,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
...
@@ -1109,7 +1109,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}
}
}
}
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' || true'
;
myQuery
+=
' || true'
;
count
++
;
count
++
;
...
...
abvw/js/contentview.js
View file @
05dc286c
...
@@ -773,17 +773,17 @@ CONTENTVIEW.searchHandle = function() {
...
@@ -773,17 +773,17 @@ CONTENTVIEW.searchHandle = function() {
}
}
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
if
(
myArray
[
i
]
==
"OR"
||
myArray
[
i
]
==
"or"
){
if
(
myArray
[
i
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myQuery
+=
' || ('
;
myQuery
+=
' || ('
;
}
else
{
}
else
{
myQuery
+=
' && ('
;
myQuery
+=
' && ('
;
}
}
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' || ( myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText)'
;
myQuery
+=
' || ( myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText)'
;
count
++
;
count
++
;
...
@@ -797,7 +797,7 @@ CONTENTVIEW.searchHandle = function() {
...
@@ -797,7 +797,7 @@ CONTENTVIEW.searchHandle = function() {
if
(
myArray
[
i
]
==
")"
){
if
(
myArray
[
i
]
==
")"
){
myQuery
+=
' )'
;
myQuery
+=
' )'
;
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' || myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText) )'
;
myQuery
+=
' || myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText) )'
;
count
++
;
count
++
;
...
@@ -808,7 +808,7 @@ CONTENTVIEW.searchHandle = function() {
...
@@ -808,7 +808,7 @@ CONTENTVIEW.searchHandle = function() {
}
}
}
}
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' || myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText)'
;
myQuery
+=
' || myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText)'
;
count
++
;
count
++
;
...
...
abvw/js/header.js
View file @
05dc286c
...
@@ -302,17 +302,17 @@ HEADER.searchHeaderButtonFunction = function(){
...
@@ -302,17 +302,17 @@ HEADER.searchHeaderButtonFunction = function(){
}
}
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
if
(
myArray
[
i
]
==
"OR"
||
myArray
[
i
]
==
"or"
){
if
(
myArray
[
i
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myQuery
+=
' || ('
;
myQuery
+=
' || ('
;
}
else
{
}
else
{
myQuery
+=
' && ('
;
myQuery
+=
' && ('
;
}
}
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' || ( true'
;
myQuery
+=
' || ( true'
;
count
++
;
count
++
;
...
@@ -326,7 +326,7 @@ HEADER.searchHeaderButtonFunction = function(){
...
@@ -326,7 +326,7 @@ HEADER.searchHeaderButtonFunction = function(){
if
(
myArray
[
i
]
==
")"
){
if
(
myArray
[
i
]
==
")"
){
myQuery
+=
' )'
;
myQuery
+=
' )'
;
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' || true )'
;
myQuery
+=
' || true )'
;
count
++
;
count
++
;
...
@@ -337,7 +337,7 @@ HEADER.searchHeaderButtonFunction = function(){
...
@@ -337,7 +337,7 @@ HEADER.searchHeaderButtonFunction = function(){
}
}
}
}
}
else
{
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' || true'
;
myQuery
+=
' || true'
;
count
++
;
count
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment