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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
d8119beb
Commit
d8119beb
authored
May 16, 2024
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: add onclick property on listbox rows links rendering
parent
c6cb5258
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
...emplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
+10
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
...mplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
View file @
d8119beb
...
@@ -92,6 +92,7 @@
...
@@ -92,6 +92,7 @@
element_data
,
element_data
,
sub_element
,
sub_element
,
a_element
,
a_element
,
a_properties
,
sub_element_list
,
sub_element_list
,
td_element_list
,
td_element_list
,
tr_element_list
=
[];
tr_element_list
=
[];
...
@@ -156,9 +157,13 @@
...
@@ -156,9 +157,13 @@
if
(
cell
.
editable
||
!
cell
.
href
)
{
if
(
cell
.
editable
||
!
cell
.
href
)
{
sub_element_list
.
push
(
sub_element
);
sub_element_list
.
push
(
sub_element
);
}
else
{
}
else
{
a_
element
=
domsugar
(
'
a
'
,
{
a_
properties
=
{
"
href
"
:
cell
.
href
"
href
"
:
cell
.
href
},
[
sub_element
]);
};
if
(
cell
.
onclick
)
{
a_properties
.
onclick
=
cell
.
onclick
;
}
a_element
=
domsugar
(
'
a
'
,
a_properties
,
[
sub_element
]);
sub_element_list
.
push
(
a_element
);
sub_element_list
.
push
(
a_element
);
}
}
...
@@ -995,6 +1000,9 @@
...
@@ -995,6 +1000,9 @@
if
(
value
.
url_value
.
command
)
{
if
(
value
.
url_value
.
command
)
{
url_value
=
line_link_list
[
counter
+
index
];
url_value
=
line_link_list
[
counter
+
index
];
index
+=
1
;
index
+=
1
;
}
else
if
(
value
.
url_value
.
onclick
)
{
url_value
=
false
;
value
.
onclick
=
value
.
url_value
.
onclick
;
}
else
{
}
else
{
url_value
=
false
;
url_value
=
false
;
}
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
d8119beb
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
994.13949.44825.36573
</string>
</value>
<value>
<string>
1016.40877.17868.16571
</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>
1
629394496.1
</float>
<float>
1
715876236.83
</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