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
Léo-Paul Géneau
erp5
Commits
4c277484
Commit
4c277484
authored
Nov 07, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: relation field: do not crash in readonly mode
parent
f34ae161
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_relation_input_js.js
...Item/web_page_module/rjs_gadget_erp5_relation_input_js.js
+6
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_relation_input_js.xml
...tem/web_page_module/rjs_gadget_erp5_relation_input_js.xml
+5
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_relation_input_js.js
View file @
4c277484
...
@@ -555,6 +555,9 @@
...
@@ -555,6 +555,9 @@
next_event
,
next_event
,
active_index
,
active_index
,
ul
=
gadget
.
element
.
querySelector
(
"
.search_ul
"
);
ul
=
gadget
.
element
.
querySelector
(
"
.search_ul
"
);
if
(
ul
===
null
)
{
return
;
}
if
(
evt
.
key
===
"
ArrowDown
"
||
evt
.
key
===
"
ArrowUp
"
)
{
if
(
evt
.
key
===
"
ArrowDown
"
||
evt
.
key
===
"
ArrowUp
"
)
{
if
(
ul
.
childNodes
.
length
>
0
)
{
if
(
ul
.
childNodes
.
length
>
0
)
{
for
(
i
=
0
;
i
<
ul
.
childNodes
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
ul
.
childNodes
.
length
;
i
+=
1
)
{
...
@@ -614,6 +617,9 @@
...
@@ -614,6 +617,9 @@
var
gadget
=
this
,
var
gadget
=
this
,
i
,
i
,
ul
=
gadget
.
element
.
querySelector
(
"
.search_ul
"
);
ul
=
gadget
.
element
.
querySelector
(
"
.search_ul
"
);
if
(
ul
===
null
)
{
return
;
}
if
(
evt
.
target
.
tagName
.
toLowerCase
()
===
'
li
'
)
{
if
(
evt
.
target
.
tagName
.
toLowerCase
()
===
'
li
'
)
{
for
(
i
=
0
;
i
<
ul
.
childNodes
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
ul
.
childNodes
.
length
;
i
+=
1
)
{
ul
.
childNodes
[
i
].
classList
.
remove
(
'
active
'
);
ul
.
childNodes
[
i
].
classList
.
remove
(
'
active
'
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_relation_input_js.xml
View file @
4c277484
...
@@ -69,7 +69,9 @@
...
@@ -69,7 +69,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
content_type
</string>
</key>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/javascript
</string>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
...
@@ -240,7 +242,7 @@
...
@@ -240,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
987.36268.43767.112
6
</string>
</value>
<value>
<string>
1020.33621.37473.6297
6
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +262,7 @@
...
@@ -260,7 +262,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
603726868.97
</float>
<float>
1
730996837.75
</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