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
2cfd9162
Commit
2cfd9162
authored
Sep 04, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Listbox: cast document pagination information to int
parent
eb39ffef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
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
+4
-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
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
View file @
2cfd9162
...
@@ -1028,7 +1028,8 @@
...
@@ -1028,7 +1028,8 @@
next_classname
=
"
ui-btn ui-icon-carat-r ui-btn-icon-right responsive ui-last-child
"
,
next_classname
=
"
ui-btn ui-icon-carat-r ui-btn-icon-right responsive ui-last-child
"
,
fragment
=
document
.
createDocumentFragment
(),
fragment
=
document
.
createDocumentFragment
(),
sub_element
,
sub_element
,
nav_element
=
gadget
.
element
.
querySelector
(
'
nav
'
);
nav_element
=
gadget
.
element
.
querySelector
(
'
nav
'
),
from_index
;
if
((
gadget
.
state
.
begin_from
===
0
)
&&
(
counter
===
0
))
{
if
((
gadget
.
state
.
begin_from
===
0
)
&&
(
counter
===
0
))
{
record
=
variable
.
translated_no_record
;
record
=
variable
.
translated_no_record
;
...
@@ -1037,7 +1038,8 @@
...
@@ -1037,7 +1038,8 @@
record
=
counter
+
"
"
+
variable
.
translated_records
;
record
=
counter
+
"
"
+
variable
.
translated_records
;
pagination_message
=
counter
;
pagination_message
=
counter
;
}
else
{
}
else
{
pagination_message
=
(((
gadget
.
state
.
begin_from
+
lines
)
/
lines
-
1
)
*
lines
+
1
)
+
"
-
"
+
(((
gadget
.
state
.
begin_from
+
lines
)
/
lines
-
1
)
*
lines
+
counter
);
from_index
=
Math
.
round
(((
gadget
.
state
.
begin_from
+
lines
)
/
lines
-
1
)
*
lines
);
pagination_message
=
(
from_index
+
1
)
+
"
-
"
+
(
from_index
+
counter
);
if
(
allDocs_result
.
count
!==
undefined
)
{
if
(
allDocs_result
.
count
!==
undefined
)
{
if
((
allDocs_result
.
count
===
1000
)
&&
(
!
gadget
.
state
.
show_count
))
{
if
((
allDocs_result
.
count
===
1000
)
&&
(
!
gadget
.
state
.
show_count
))
{
pagination_message
+=
'
/
'
+
sample_string
+
'
'
+
allDocs_result
.
count
;
pagination_message
+=
'
/
'
+
sample_string
+
'
'
+
allDocs_result
.
count
;
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
2cfd9162
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
7.11616.36565.47718
</string>
</value>
<value>
<string>
97
8.14035.65281.57804
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
156
3530945.78
</float>
<float>
156
7608261.37
</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