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
Labels
Merge Requests
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
fee2cd74
Commit
fee2cd74
authored
Oct 04, 2018
by
Boris Kocherov
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: schema_editor: use Query builder instead string concatination. thanks
@jerome
parent
4bdf6c80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_json_document_view.js.js
..._page_module/gadget_officejs_jio_json_document_view.js.js
+19
-5
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_json_document_view.js.js
View file @
fee2cd74
/*global window, rJS, RSVP, jIO, URL,
/*global window, rJS, RSVP, jIO, URL,
Query,
promiseEventListener, document*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
jIO
,
rJS
,
RSVP
)
{
(
function
(
window
,
jIO
,
rJS
,
RSVP
,
Query
)
{
"
use strict
"
;
rJS
(
window
)
...
...
@@ -88,11 +88,25 @@
url
=
arr
[
0
],
reference
,
args
;
// return g.jio_getAttachment(id, "data", {format: "json"});
if
(
url
.
startsWith
(
"
urn:jio:reference?
"
))
{
reference
=
decodeURIComponent
(
url
.
replace
(
"
urn:jio:reference?
"
,
""
));
args
=
{
query
:
'
(portal_type: "JSON Schema") AND ((reference: "
'
+
reference
+
'
"))
'
,
query
:
Query
.
objectToSearchText
({
type
:
"
complex
"
,
operator
:
"
AND
"
,
query_list
:
[
{
key
:
"
portal_type
"
,
type
:
"
simple
"
,
value
:
"
JSON Schema
"
},
{
key
:
"
reference
"
,
type
:
"
simple
"
,
value
:
reference
}
]
}),
limit
:
[
0
,
1
],
select_list
:
[],
sort_on
:
[[
"
modification_date
"
,
"
descending
"
]]
...
...
@@ -199,4 +213,4 @@
});
});
});
}(
window
,
jIO
,
rJS
,
RSVP
));
}(
window
,
jIO
,
rJS
,
RSVP
,
Query
));
Boris Kocherov
@bk
mentioned in commit
bk/rjs_json_form@e3afa724
·
Oct 03, 2018
mentioned in commit
bk/rjs_json_form@e3afa724
mentioned in commit bk/rjs_json_form@e3afa72461373d49d440efcc342ed0b785ec4481
Toggle commit list
Jérome Perrin
@jerome
·
Oct 04, 2018
Owner
👍
:+1:
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