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
eb791248
Commit
eb791248
authored
Jan 04, 2022
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: avoid errors when there is no data
parent
a022b117
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_html.html
...TemplateItem/web_page_module/rjs_gadget_graphic_html.html
+1
-1
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
+10
-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 @
eb791248
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</div>
</div>
</div>
</div>
<div
class=
"bottom"
>
<div
class=
"bottom"
>
<input
type=
"submit"
class=
"ui-disabled"
data-i18n=
"[value]Reset Filter"
value=
"Reset Filter"
disabled
/>
<input
type=
"submit"
class=
"ui-disabled
reset-filter
"
data-i18n=
"[value]Reset Filter"
value=
"Reset Filter"
disabled
/>
</div>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_html.xml
View file @
eb791248
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
4.33037.54289.49544
</string>
</value>
<value>
<string>
99
7.7172.17438.7031
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
30625748.53
</float>
<float>
16
41309745.94
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
View file @
eb791248
...
@@ -197,11 +197,13 @@
...
@@ -197,11 +197,13 @@
})
})
.
onEvent
(
"
click
"
,
function
(
evt
)
{
.
onEvent
(
"
click
"
,
function
(
evt
)
{
var
gadget
=
this
,
var
gadget
=
this
,
restore_filter_input
=
gadget
.
element
.
querySelector
All
(
"
input
"
)[
0
]
;
restore_filter_input
=
gadget
.
element
.
querySelector
(
"
.reset-filter
"
)
;
if
(
evt
.
target
===
restore_filter_input
)
{
if
(
evt
.
target
===
restore_filter_input
)
{
evt
.
preventDefault
();
evt
.
preventDefault
();
if
(
restore_filter_input
)
{
restore_filter_input
.
disabled
=
true
;
restore_filter_input
.
disabled
=
true
;
restore_filter_input
.
classList
.
add
(
"
ui-disabled
"
);
restore_filter_input
.
classList
.
add
(
"
ui-disabled
"
);
}
return
gadget
.
redirect
({
return
gadget
.
redirect
({
command
:
"
change
"
,
command
:
"
change
"
,
options
:
{
options
:
{
...
@@ -370,9 +372,11 @@
...
@@ -370,9 +372,11 @@
});
});
})
})
.
push
(
function
()
{
.
push
(
function
()
{
var
restore_filter_input
=
gadget
.
element
.
querySelectorAll
(
"
input
"
)[
0
];
var
restore_filter_input
=
gadget
.
element
.
querySelector
(
"
.reset-filter
"
);
if
(
restore_filter_input
)
{
restore_filter_input
.
disabled
=
false
;
restore_filter_input
.
disabled
=
false
;
restore_filter_input
.
classList
.
remove
(
"
ui-disabled
"
);
restore_filter_input
.
classList
.
remove
(
"
ui-disabled
"
);
}
});
});
});
});
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
View file @
eb791248
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.1
7600.7409.53606
</string>
</value>
<value>
<string>
997.1
8816.40125.35669
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -264,7 +264,7 @@
...
@@ -264,7 +264,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1641
237395.88
</float>
<float>
1641
310195.82
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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