Fix #1915 (more than 10 books at a time are displayed in books table)
This commit is contained in:
parent
e9552fedef
commit
8c0aa79f78
|
@ -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",
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user