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
80430d20
Commit
80430d20
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
d5d0219d
Changes
4
Hide 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 @
80430d20
...
@@ -10,7 +10,9 @@
...
@@ -10,7 +10,9 @@
var
DISPLAY_READER
=
'
display_reader
'
,
var
DISPLAY_READER
=
'
display_reader
'
,
DISPLAY_THREAD
=
'
display_thread
'
,
DISPLAY_THREAD
=
'
display_thread
'
,
DISPLAY_POST
=
'
display_post
'
,
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
)
{
function
loadChildGadget
(
gadget
,
gadget_url
,
must_declare
,
callback
)
{
var
queue
,
var
queue
,
...
@@ -151,8 +153,8 @@
...
@@ -151,8 +153,8 @@
"
default_params
"
:
{},
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable
"
:
1
,
"
editable_column_list
"
:
[],
"
editable_column_list
"
:
[],
"
key
"
:
"
field_nutnut
"
,
"
key
"
:
THREAD_READER_FIELD_KEY
,
"
lines
"
:
15
,
"
lines
"
:
DISPLAYED_POST_COUNT
,
"
list_method
"
:
"
portal_catalog
"
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
"
urn:jio:allDocs?query=
"
+
Query
.
objectToSearchText
(
"
query
"
:
"
urn:jio:allDocs?query=
"
+
Query
.
objectToSearchText
(
new
ComplexQuery
({
new
ComplexQuery
({
...
@@ -205,8 +207,8 @@
...
@@ -205,8 +207,8 @@
type
:
"
complex
"
type
:
"
complex
"
})
})
),
),
sort
:
[[
'
modification_date
'
,
'
ASC
'
]],
sort
:
[[
'
modification_date
'
,
'
ASC
'
]
,
[
'
uid
'
,
'
ASC
'
]
],
lines
:
15
,
lines
:
DISPLAYED_POST_COUNT
,
}),
}),
"
hidden
"
:
0
"
hidden
"
:
0
};
};
...
@@ -510,7 +512,8 @@
...
@@ -510,7 +512,8 @@
var
i
,
date
,
var
i
,
date
,
len
=
result
.
data
.
total_rows
,
len
=
result
.
data
.
total_rows
,
key
,
key
,
url_value
;
url_value
,
last_url_value
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
url_value
=
{
url_value
=
{
command
:
'
index
'
,
command
:
'
index
'
,
...
@@ -519,6 +522,16 @@
...
@@ -519,6 +522,16 @@
page
:
gadget
.
state
.
page
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
)
{
for
(
key
in
result
.
data
.
rows
[
i
].
value
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
key
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
key
))
{
...
@@ -531,6 +544,8 @@
...
@@ -531,6 +544,8 @@
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
modification_date
"
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
modification_date
"
))
{
date
=
new
Date
(
result
.
data
.
rows
[
i
].
value
.
modification_date
.
default
);
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
=
{
result
.
data
.
rows
[
i
].
value
.
modification_date
.
field_gadget_param
=
{
allow_empty_time
:
0
,
allow_empty_time
:
0
,
ampm_time_style
:
0
,
ampm_time_style
:
0
,
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
View file @
80430d20
...
@@ -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.2
1920.50173.26606
</string>
</value>
<value>
<string>
989.2
3331.40399.10871
</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>
1610
644020.77
</float>
<float>
1610
728771.86
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.js
View file @
80430d20
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
limit
:
limit_options
,
limit
:
limit_options
,
select_list
:
[
'
asStrippedHTML
'
,
'
modification_date
'
,
select_list
:
[
'
asStrippedHTML
'
,
'
modification_date
'
,
'
source_title
'
],
'
source_title
'
],
sort_on
:
[[
'
modification_date
'
,
'
ASC
'
]]
sort_on
:
[[
'
modification_date
'
,
'
ASC
'
]
,
[
'
uid
'
,
'
ASC
'
]
]
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
return
gadget
.
changeState
({
return
gadget
.
changeState
({
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.xml
View file @
80430d20
...
@@ -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.23313.4
3269.31948
</string>
</value>
<value>
<string>
989.23313.4
9582.17834
</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>
1610727
465.34
</float>
<float>
1610727
867.53
</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