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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
fd66974a
Commit
fd66974a
authored
Dec 27, 2021
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: clean up
parent
c4bae1c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
25 deletions
+14
-25
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
...PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
+12
-23
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
...athTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
View file @
fd66974a
...
...
@@ -24,32 +24,17 @@
extended_search
:
result
}
});
})
.
push
(
function
()
{
var
restore_filter_input
=
gadget
.
element
.
querySelectorAll
(
"
input
"
)[
0
];
restore_filter_input
.
disabled
=
false
;
restore_filter_input
.
classList
.
remove
(
"
ui-disabled
"
);
});
})
.
declareMethod
(
'
getSearchCriteria
'
,
function
(
a
,
b
)
{
return
Query
.
objectToSearchText
(
new
ComplexQuery
({
operator
:
"
AND
"
,
type
:
"
complex
"
,
query_list
:
[
new
SimpleQuery
({
operator
:
""
,
key
:
this
.
state
.
extended_search_mapping
[
a
].
key
,
type
:
"
simple
"
,
value
:
this
.
state
.
extended_search_mapping
[
a
].
value
}),
new
SimpleQuery
({
operator
:
""
,
key
:
this
.
state
.
x
,
type
:
"
simple
"
,
value
:
b
})
]
}));
return
Query
.
objectToSearchText
(
new
SimpleQuery
({
operator
:
""
,
key
:
this
.
state
.
extended_search_mapping
[
b
].
value
,
type
:
"
simple
"
,
value
:
a
})
);
})
/////////////////////////////////////////////////////////////////
// declared methods
...
...
@@ -177,6 +162,10 @@
"
select_list
"
:
select_list
.
concat
(
group_by
)
};
}
else
{
data
.
extended_search_mapping
[
options
.
title
]
=
{
"
key
"
:
group_by
,
"
value
"
:
options
.
group_by
};
data
.
query
=
{
"
query
"
:
Query
.
objectToSearchText
(
new
ComplexQuery
({
operator
:
"
AND
"
,
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
View file @
fd66974a
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
5.17898.45843.30139
</string>
</value>
<value>
<string>
99
7.7486.55612.53862
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
16
33479573.07
</float>
<float>
16
40630356.79
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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