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
d7ead68c
Commit
d7ead68c
authored
Jan 15, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
romain_dev: forum link to last page
parent
70f55e01
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
11 deletions
+26
-11
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.js
...n_dev/PathTemplateItem/web_page_module/romain_forum_js.js
+21
-6
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
..._dev/PathTemplateItem/web_page_module/romain_forum_js.xml
+2
-2
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.js
...thTemplateItem/web_page_module/romain_thread_reader_js.js
+1
-1
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.xml
...hTemplateItem/web_page_module/romain_thread_reader_js.xml
+2
-2
No files found.
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.js
View file @
d7ead68c
...
...
@@ -10,7 +10,9 @@
var
DISPLAY_READER
=
'
display_reader
'
,
DISPLAY_THREAD
=
'
display_thread
'
,
DISPLAY_POST
=
'
display_post
'
,
MAIN_SCOPE
=
'
child_scope
'
;
MAIN_SCOPE
=
'
child_scope
'
,
DISPLAYED_POST_COUNT
=
15
,
THREAD_READER_FIELD_KEY
=
'
field_listbox
'
;
function
loadChildGadget
(
gadget
,
gadget_url
,
must_declare
,
callback
)
{
var
queue
,
...
...
@@ -151,8 +153,8 @@
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable_column_list
"
:
[],
"
key
"
:
"
field_nutnut
"
,
"
lines
"
:
15
,
"
key
"
:
THREAD_READER_FIELD_KEY
,
"
lines
"
:
DISPLAYED_POST_COUNT
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
"
urn:jio:allDocs?query=
"
+
Query
.
objectToSearchText
(
new
ComplexQuery
({
...
...
@@ -205,8 +207,8 @@
type
:
"
complex
"
})
),
sort
:
[[
'
modification_date
'
,
'
ASC
'
]],
lines
:
15
,
sort
:
[[
'
modification_date
'
,
'
ASC
'
]
,
[
'
uid
'
,
'
ASC
'
]
],
lines
:
DISPLAYED_POST_COUNT
,
}),
"
hidden
"
:
0
};
...
...
@@ -510,7 +512,8 @@
var
i
,
date
,
len
=
result
.
data
.
total_rows
,
key
,
url_value
;
url_value
,
last_url_value
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
url_value
=
{
command
:
'
index
'
,
...
...
@@ -519,6 +522,16 @@
page
:
gadget
.
state
.
page
}
};
last_url_value
=
{
command
:
'
index
'
,
options
:
{
jio_key
:
result
.
data
.
rows
[
i
].
id
,
page
:
gadget
.
state
.
page
,
}
};
last_url_value
.
options
[
THREAD_READER_FIELD_KEY
+
'
_begin_from
'
]
=
result
.
data
.
rows
[
i
].
value
.
DiscussionThread_getDiscussionPostCount
-
(
result
.
data
.
rows
[
i
].
value
.
DiscussionThread_getDiscussionPostCount
%
DISPLAYED_POST_COUNT
);
for
(
key
in
result
.
data
.
rows
[
i
].
value
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
key
))
{
...
...
@@ -531,6 +544,8 @@
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
modification_date
"
))
{
date
=
new
Date
(
result
.
data
.
rows
[
i
].
value
.
modification_date
.
default
);
console
.
log
(
last_url_value
);
result
.
data
.
rows
[
i
].
value
.
modification_date
.
url_value
=
last_url_value
;
result
.
data
.
rows
[
i
].
value
.
modification_date
.
field_gadget_param
=
{
allow_empty_time
:
0
,
ampm_time_style
:
0
,
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
View file @
d7ead68c
...
...
@@ -240,7 +240,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
989.2
1920.50173.26606
</string>
</value>
<value>
<string>
989.2
3331.40399.10871
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>
1610
644020.77
</float>
<float>
1610
728771.86
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.js
View file @
d7ead68c
...
...
@@ -281,7 +281,7 @@
limit
:
limit_options
,
select_list
:
[
'
asStrippedHTML
'
,
'
modification_date
'
,
'
source_title
'
],
sort_on
:
[[
'
modification_date
'
,
'
ASC
'
]]
sort_on
:
[[
'
modification_date
'
,
'
ASC
'
]
,
[
'
uid
'
,
'
ASC
'
]
]
})
.
push
(
function
(
result
)
{
return
gadget
.
changeState
({
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.xml
View file @
d7ead68c
...
...
@@ -240,7 +240,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
989.23313.4
3269.31948
</string>
</value>
<value>
<string>
989.23313.4
9582.17834
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>
1610727
465.34
</float>
<float>
1610727
867.53
</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