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
Frederic Thoma
erp5
Commits
bf7bd69d
Commit
bf7bd69d
authored
Sep 03, 2021
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: clean up and put back reset button
parent
5fba43e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_html.html
...TemplateItem/web_page_module/rjs_gadget_graphic_html.html
+3
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_html.xml
...hTemplateItem/web_page_module/rjs_gadget_graphic_html.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
...PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
+3
-6
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_html.html
View file @
bf7bd69d
...
...
@@ -24,5 +24,8 @@
<div
class=
"wrap"
></div>
</div>
</div>
<div
class=
"bottom"
>
<input
type=
"submit"
class=
"ui-disabled"
data-i18n=
"[value]Reset Filter"
value=
"Reset Filter"
disabled
/>
</div>
</body>
</html>
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_html.xml
View file @
bf7bd69d
...
...
@@ -244,7 +244,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
994.
15023.5523.52002
</string>
</value>
<value>
<string>
994.
33037.54289.49544
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>
16
29926033.28
</float>
<float>
16
30625748.53
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
View file @
bf7bd69d
...
...
@@ -100,11 +100,7 @@
}
}
if
(
Array
.
isArray
(
group_by
))
{
data
.
y
=
"
count(
"
+
(
group_by
[
0
]
||
options
.
layout
.
x
.
key
)
+
"
)
"
;
}
else
{
data
.
y
=
"
count(
"
+
(
group_by
||
options
.
layout
.
x
.
key
)
+
"
)
"
;
}
data
.
y
=
"
count(*)
"
;
for
(
i
in
query_by
)
{
if
(
query_by
.
hasOwnProperty
(
i
))
{
...
...
@@ -239,7 +235,7 @@
bar_chart
.
style
.
display
=
"
block
"
;
function
avoidFunction
(
el
)
{
return
el
&&
!
el
.
match
(
/^
\D
+
\(
\w
+
\)
$/
);
return
el
&&
!
el
.
match
(
/^
\D
+
\(
(\w
+|
\*)
\)
$/
);
}
if
(
gadget
.
state
.
query
&&
"
object
"
===
typeof
gadget
.
state
.
query
&&
...
...
@@ -255,6 +251,7 @@
title
:
gadget
.
state
.
x_title
||
gadget
.
state
.
title
}];
for
(
i
=
0
;
i
<
row_list
.
length
;
i
+=
1
)
{
console
.
log
([
gadget
.
state
.
x
,
gadget
.
state
.
y
]);
data_list
[
0
].
value_dict
[
'
0
'
].
push
(
row_list
[
i
].
value
[
gadget
.
state
.
x
]
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
View file @
bf7bd69d
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
994.34
220.36018.63146
</string>
</value>
<value>
<string>
994.34
490.6237.36642
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
16306
10878.23
</float>
<float>
16306
29853.6
</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