Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
erp5
Commits
b7b52f88
Commit
b7b52f88
authored
Jun 07, 2019
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jIO version up
parent
4a89f9c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
6 deletions
+32
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
...enderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
+16
-3
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/jio.js.js
...p5_core/SkinTemplateItem/portal_skins/erp5_core/jio.js.js
+16
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
View file @
b7b52f88
...
@@ -6105,6 +6105,8 @@ var arrayExtend = function () {
...
@@ -6105,6 +6105,8 @@ var arrayExtend = function () {
return
true
;
return
true
;
}
}
return
false
;
return
false
;
},
parseQuotedString
=
function
(
string
)
{
return
string
.
replace
(
/
(?:\\(
"
)
|
(\\[^
"
]))
/g
,
'
$1$2
'
);
},
},
error_offsets
=
[],
error_offsets
=
[],
error_lookaheads
=
[],
error_lookaheads
=
[],
...
@@ -6226,7 +6228,7 @@ case 17:
...
@@ -6226,7 +6228,7 @@ case 17:
this
.
$
=
mkSimpleQuery
(
''
,
$$
[
$0
]);
this
.
$
=
mkSimpleQuery
(
''
,
$$
[
$0
]);
break
;
break
;
case
18
:
case
18
:
this
.
$
=
mkSimpleQuery
(
''
,
$$
[
$0
-
1
]
);
this
.
$
=
mkSimpleQuery
(
''
,
parseQuotedString
(
$$
[
$0
-
1
])
);
break
;
break
;
}
}
},
},
...
@@ -7445,6 +7447,16 @@ return new Parser;
...
@@ -7445,6 +7447,16 @@ return new Parser;
"
Argument 1 is not a search text or a parsable object
"
);
"
Argument 1 is not a search text or a parsable object
"
);
};
};
function
ensureString
(
value
)
{
if
(
value
===
undefined
)
{
return
"
undefined
"
;
}
if
(
value
===
null
)
{
return
"
null
"
;
}
return
value
.
toString
();
}
function
renderSearchTextValue
(
value
)
{
return
'
"
'
+
ensureString
(
value
).
replace
(
/"/g
,
'
\\
"
'
)
+
'
"
'
;
}
function
objectToSearchText
(
query
)
{
function
objectToSearchText
(
query
)
{
var
i
=
0
,
var
i
=
0
,
query_list
=
null
,
query_list
=
null
,
...
@@ -7453,7 +7465,8 @@ return new Parser;
...
@@ -7453,7 +7465,8 @@ return new Parser;
common_key
=
""
;
common_key
=
""
;
if
(
query
.
type
===
"
simple
"
)
{
if
(
query
.
type
===
"
simple
"
)
{
return
(
query
.
key
?
query
.
key
+
"
:
"
:
""
)
+
return
(
query
.
key
?
query
.
key
+
"
:
"
:
""
)
+
(
query
.
operator
||
""
)
+
'
"
'
+
query
.
value
+
'
"
'
;
(
query
.
operator
||
""
)
+
'
'
+
renderSearchTextValue
(
query
.
value
);
}
}
if
(
query
.
type
===
"
complex
"
)
{
if
(
query
.
type
===
"
complex
"
)
{
query_list
=
query
.
query_list
;
query_list
=
query
.
query_list
;
...
@@ -7484,7 +7497,7 @@ return new Parser;
...
@@ -7484,7 +7497,7 @@ return new Parser;
for
(
i
=
0
;
i
<
query_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
query_list
.
length
;
i
+=
1
)
{
string_list
.
push
(
string_list
.
push
(
(
query_list
[
i
].
operator
||
""
)
+
(
query_list
[
i
].
operator
||
""
)
+
'
"
'
+
query_list
[
i
].
value
+
'
"
'
'
'
+
renderSearchTextValue
(
query_list
[
i
].
value
)
);
);
}
}
}
else
{
}
else
{
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/jio.js.js
View file @
b7b52f88
...
@@ -6105,6 +6105,8 @@ var arrayExtend = function () {
...
@@ -6105,6 +6105,8 @@ var arrayExtend = function () {
return
true
;
return
true
;
}
}
return
false
;
return
false
;
},
parseQuotedString
=
function
(
string
)
{
return
string
.
replace
(
/
(?:\\(
"
)
|
(\\[^
"
]))
/g
,
'
$1$2
'
);
},
},
error_offsets
=
[],
error_offsets
=
[],
error_lookaheads
=
[],
error_lookaheads
=
[],
...
@@ -6226,7 +6228,7 @@ case 17:
...
@@ -6226,7 +6228,7 @@ case 17:
this
.
$
=
mkSimpleQuery
(
''
,
$$
[
$0
]);
this
.
$
=
mkSimpleQuery
(
''
,
$$
[
$0
]);
break
;
break
;
case
18
:
case
18
:
this
.
$
=
mkSimpleQuery
(
''
,
$$
[
$0
-
1
]
);
this
.
$
=
mkSimpleQuery
(
''
,
parseQuotedString
(
$$
[
$0
-
1
])
);
break
;
break
;
}
}
},
},
...
@@ -7445,6 +7447,16 @@ return new Parser;
...
@@ -7445,6 +7447,16 @@ return new Parser;
"
Argument 1 is not a search text or a parsable object
"
);
"
Argument 1 is not a search text or a parsable object
"
);
};
};
function
ensureString
(
value
)
{
if
(
value
===
undefined
)
{
return
"
undefined
"
;
}
if
(
value
===
null
)
{
return
"
null
"
;
}
return
value
.
toString
();
}
function
renderSearchTextValue
(
value
)
{
return
'
"
'
+
ensureString
(
value
).
replace
(
/"/g
,
'
\\
"
'
)
+
'
"
'
;
}
function
objectToSearchText
(
query
)
{
function
objectToSearchText
(
query
)
{
var
i
=
0
,
var
i
=
0
,
query_list
=
null
,
query_list
=
null
,
...
@@ -7453,7 +7465,8 @@ return new Parser;
...
@@ -7453,7 +7465,8 @@ return new Parser;
common_key
=
""
;
common_key
=
""
;
if
(
query
.
type
===
"
simple
"
)
{
if
(
query
.
type
===
"
simple
"
)
{
return
(
query
.
key
?
query
.
key
+
"
:
"
:
""
)
+
return
(
query
.
key
?
query
.
key
+
"
:
"
:
""
)
+
(
query
.
operator
||
""
)
+
'
"
'
+
query
.
value
+
'
"
'
;
(
query
.
operator
||
""
)
+
'
'
+
renderSearchTextValue
(
query
.
value
);
}
}
if
(
query
.
type
===
"
complex
"
)
{
if
(
query
.
type
===
"
complex
"
)
{
query_list
=
query
.
query_list
;
query_list
=
query
.
query_list
;
...
@@ -7484,7 +7497,7 @@ return new Parser;
...
@@ -7484,7 +7497,7 @@ return new Parser;
for
(
i
=
0
;
i
<
query_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
query_list
.
length
;
i
+=
1
)
{
string_list
.
push
(
string_list
.
push
(
(
query_list
[
i
].
operator
||
""
)
+
(
query_list
[
i
].
operator
||
""
)
+
'
"
'
+
query_list
[
i
].
value
+
'
"
'
'
'
+
renderSearchTextValue
(
query_list
[
i
].
value
)
);
);
}
}
}
else
{
}
else
{
...
...
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