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
138
Merge Requests
138
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
09571bdc
Commit
09571bdc
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
0fc6d445
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 @
09571bdc
...
...
@@ -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 @
09571bdc
...
...
@@ -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 @
09571bdc
...
...
@@ -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 @
09571bdc
...
...
@@ -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