Fix #1915 (more than 10 books at a time are displayed in books table)

This commit is contained in:
Ozzie Isaacs 2021-05-28 18:48:46 +02:00
parent e9552fedef
commit 8c0aa79f78
35 changed files with 6 additions and 3 deletions

View File

@ -136,10 +136,11 @@ $(function() {
$("#books-table").bootstrapTable({ $("#books-table").bootstrapTable({
sidePagination: "server", sidePagination: "server",
pageList: "[10, 25, 50, 100]",
queryParams: queryParams, queryParams: queryParams,
pagination: true, pagination: true,
paginationLoop: false, paginationLoop: false,
paginationDetailHAlign: " hidden", paginationDetailHAlign: "right",
paginationHAlign: "left", paginationHAlign: "left",
idField: "id", idField: "id",
uniqueId: "id", uniqueId: "id",

View File

@ -97,5 +97,9 @@
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table.min.js') }}"></script> <script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table-editable.min.js') }}"></script> <script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table-editable.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-editable.min.js') }}"></script> <script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-editable.min.js') }}"></script>
{% if not g.user.locale == 'en' %}
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/locale/bootstrap-table-' + g.user.locale + '.min.js') }}" charset="UTF-8"></script>
{% endif %}
<script src="{{ url_for('static', filename='js/table.js') }}"></script> <script src="{{ url_for('static', filename='js/table.js') }}"></script>
{% endblock %} {% endblock %}

View File

@ -21,8 +21,6 @@
</tr> </tr>
</thead> </thead>
</table> </table>
<!--div class="btn btn-default" id="tasks_delete">{{_('Delete finished tasks')}}</div>
<div class="btn btn-default" id="tasks_hide">{{_('Hide all tasks')}}</div-->
</div> </div>
{% endblock %} {% endblock %}
{% block js %} {% block js %}