diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js index 486bc52ecb6e6eb85dbb969f9cae879be2d8c9b8..0b9fcf6fa02fadd0233fd929e64ccdf0884a5eea 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js @@ -1028,7 +1028,8 @@ next_classname = "ui-btn ui-icon-carat-r ui-btn-icon-right responsive ui-last-child", fragment = document.createDocumentFragment(), sub_element, - nav_element = gadget.element.querySelector('nav'); + nav_element = gadget.element.querySelector('nav'), + from_index; if ((gadget.state.begin_from === 0) && (counter === 0)) { record = variable.translated_no_record; @@ -1037,7 +1038,8 @@ record = counter + " " + variable.translated_records; pagination_message = counter; } 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 === 1000) && (!gadget.state.show_count)) { pagination_message += ' / ' + sample_string + ' ' + allDocs_result.count; diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml index 4b8ee3e60f0fe3ca4ad432fbb578c3c204fa61f8..fcdff163bf7e7724e2ee7bb5c474e43ea4fbe12f 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml @@ -234,7 +234,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>977.11616.36565.47718</string> </value> + <value> <string>978.14035.65281.57804</string> </value> </item> <item> <key> <string>state</string> </key> @@ -252,7 +252,7 @@ </tuple> <state> <tuple> - <float>1563530945.78</float> + <float>1567608261.37</float> <string>UTC</string> </tuple> </state>