Commit 62dca9e3 authored by Romain Courteaud's avatar Romain Courteaud

Improve pagination text.

Give informations about total number of results per page.
parent 8e3de227
...@@ -274,7 +274,14 @@ ...@@ -274,7 +274,14 @@
paging_prev.textContent = "Previous";\n paging_prev.textContent = "Previous";\n
paging_prev.href = url_list[0];\n paging_prev.href = url_list[0];\n
paging_info.className = "ui-btn ui-disabled custom-readonly";\n paging_info.className = "ui-btn ui-disabled custom-readonly";\n
paging_info.textContent = "Page " + ((begin_from + lines) / lines);\n if ((begin_from === 0) && (counter === 0)) {\n
paging_info.textContent = "No records";\n
} else if ((dataset.data.rows.length <= lines) && (begin_from === 0)) {\n
paging_info.textContent = counter + " records";\n
} else {\n
paging_info.textContent = "Records " + (((begin_from + lines) / lines - 1) * lines) + " to " + (((begin_from + lines) / lines - 1) * lines + counter);\n
}\n
// paging_info.textContent = "Page " + ((begin_from + lines) / lines);\n
paging_next.className = "ui-btn ui-icon-carat-r ui-btn-icon-right ui-last-child";\n paging_next.className = "ui-btn ui-icon-carat-r ui-btn-icon-right ui-last-child";\n
paging_next.textContent = "Next";\n paging_next.textContent = "Next";\n
paging_next.href = url_list[1];\n paging_next.href = url_list[1];\n
...@@ -442,7 +449,7 @@ ...@@ -442,7 +449,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>937.64366.64920.32563</string> </value> <value> <string>938.4259.17102.18414</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -460,7 +467,7 @@ ...@@ -460,7 +467,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1412261538.63</float> <float>1412586621.73</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment