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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
d1532405
Commit
d1532405
authored
Jan 15, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
romain_dev: forum set expected link on the listbox cells
parent
62e89101
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
29 deletions
+53
-29
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.js
...n_dev/PathTemplateItem/web_page_module/romain_forum_js.js
+51
-27
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
..._dev/PathTemplateItem/web_page_module/romain_forum_js.xml
+2
-2
No files found.
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.js
View file @
d1532405
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
column_list
=
[
column_list
=
[
[
'
title
'
,
'
Title
'
],
[
'
title
'
,
'
Title
'
],
[
'
DiscussionThread_getDiscussionPostCount
'
,
'
Responses
'
],
[
'
DiscussionThread_getDiscussionPostCount
'
,
'
Responses
'
],
[
'
modification_date
'
,
'
Modification
Date
'
]
[
'
modification_date
'
,
'
Date
'
]
];
];
field_dict
.
listbox
=
{
field_dict
.
listbox
=
{
...
@@ -507,34 +507,58 @@
...
@@ -507,34 +507,58 @@
console
.
log
(
scope
,
param_list
);
console
.
log
(
scope
,
param_list
);
return
gadget
.
jio_allDocs
(
options
)
return
gadget
.
jio_allDocs
(
options
)
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
date
,
len
=
result
.
data
.
total_rows
;
var
i
,
date
,
len
=
result
.
data
.
total_rows
,
key
,
url_value
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
modification_date
"
))
{
url_value
=
{
date
=
new
Date
(
result
.
data
.
rows
[
i
].
value
.
modification_date
);
command
:
'
index
'
,
result
.
data
.
rows
[
i
].
value
.
modification_date
=
{
options
:
{
url_value
:
{
jio_key
:
result
.
data
.
rows
[
i
].
id
,
command
:
'
index
'
,
page
:
gadget
.
state
.
page
options
:
{
}
jio_key
:
result
.
data
.
rows
[
i
].
id
,
};
page
:
gadget
.
state
.
page
}
for
(
key
in
result
.
data
.
rows
[
i
].
value
)
{
},
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
key
))
{
field_gadget_param
:
{
result
.
data
.
rows
[
i
].
value
[
key
]
=
{
allow_empty_time
:
0
,
url_value
:
url_value
,
ampm_time_style
:
0
,
default
:
result
.
data
.
rows
[
i
].
value
[
key
]
css_class
:
"
date_field
"
,
date_only
:
false
,
description
:
"
The Date
"
,
editable
:
1
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
date
.
toUTCString
(),
key
:
"
modification_date
"
,
required
:
0
,
timezone_style
:
0
,
title
:
"
Modification Date
"
,
type
:
"
DateTimeField
"
}
}
}
}
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
modification_date
"
))
{
date
=
new
Date
(
result
.
data
.
rows
[
i
].
value
.
modification_date
.
default
);
result
.
data
.
rows
[
i
].
value
.
modification_date
.
field_gadget_param
=
{
allow_empty_time
:
0
,
ampm_time_style
:
0
,
css_class
:
"
date_field
"
,
date_only
:
false
,
description
:
"
The Date
"
,
editable
:
1
,
hidden
:
0
,
hidden_day_is_last_day
:
0
,
"
default
"
:
date
.
toUTCString
(),
key
:
"
modification_date
"
,
required
:
0
,
timezone_style
:
0
,
title
:
"
Modification Date
"
,
type
:
"
DateTimeField
"
};
}
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
DiscussionThread_getDiscussionPostCount
"
))
{
result
.
data
.
rows
[
i
].
value
.
DiscussionThread_getDiscussionPostCount
.
field_gadget_param
=
{
description
:
"
Count
"
,
editable
:
0
,
hidden
:
0
,
"
default
"
:
result
.
data
.
rows
[
i
].
value
.
DiscussionThread_getDiscussionPostCount
.
default
,
key
:
"
count
"
,
required
:
0
,
title
:
"
Responses
"
,
type
:
"
IntegerField
"
};
};
}
}
/*
/*
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
View file @
d1532405
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
989.21
570.59351.45277
</string>
</value>
<value>
<string>
989.21
920.50173.26606
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16106
22907.09
</float>
<float>
16106
44020.77
</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