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
Hide 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() {
}
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
]);
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myQuery
+=
' || ('
;
}
else
{
myQuery
+=
' && ('
;
}
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' || ( true'
;
count
++
;
...
...
@@ -1098,7 +1098,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
if
(
myArray
[
i
]
==
")"
){
myQuery
+=
' )'
;
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' || true )'
;
count
++
;
...
...
@@ -1109,7 +1109,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}
}
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' || true'
;
count
++
;
...
...
abvw/js/contentview.js
View file @
05dc286c
...
...
@@ -773,17 +773,17 @@ CONTENTVIEW.searchHandle = function() {
}
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
]);
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myQuery
+=
' || ('
;
}
else
{
myQuery
+=
' && ('
;
}
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' || ( myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText)'
;
count
++
;
...
...
@@ -797,7 +797,7 @@ CONTENTVIEW.searchHandle = function() {
if
(
myArray
[
i
]
==
")"
){
myQuery
+=
' )'
;
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' || myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText) )'
;
count
++
;
...
...
@@ -808,7 +808,7 @@ CONTENTVIEW.searchHandle = function() {
}
}
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' || myRegExpArr['
+
i
+
'].test(contentPage[nIndex].pageText)'
;
count
++
;
...
...
abvw/js/header.js
View file @
05dc286c
...
...
@@ -302,17 +302,17 @@ HEADER.searchHeaderButtonFunction = function(){
}
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
]);
}
else
if
(
myArray
[
i
].
charAt
(
0
)
==
"("
||
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
]
==
"("
){
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myQuery
+=
' || ('
;
}
else
{
myQuery
+=
' && ('
;
}
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
1
));
myQuery
+=
' || ( true'
;
count
++
;
...
...
@@ -326,7 +326,7 @@ HEADER.searchHeaderButtonFunction = function(){
if
(
myArray
[
i
]
==
")"
){
myQuery
+=
' )'
;
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
].
slice
(
0
,
-
1
));
myQuery
+=
' || true )'
;
count
++
;
...
...
@@ -337,7 +337,7 @@ HEADER.searchHeaderButtonFunction = function(){
}
}
}
else
{
if
(
myArray
[
i
-
1
]
==
"OR"
||
myArray
[
i
-
1
]
==
"or"
){
if
(
myArray
[
i
-
1
]
==
"OR"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
myQuery
+=
' || true'
;
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