1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-01-30 10:51:52 +00:00

add page size option for manual search results

This commit is contained in:
josdion 2020-04-20 17:28:12 +03:00
parent 9bd36cf137
commit c60a64790d
4 changed files with 24 additions and 6 deletions

View file

@ -32,6 +32,7 @@ defaults = {
'movie_default_hi': 'False',
'movie_default_forced': 'False',
'page_size': '25',
'page_size_manual_search': '5',
'minimum_score_movie': '70',
'use_embedded_subs': 'True',
'utf8_encode': 'True',

View file

@ -525,8 +525,9 @@
processing: "Searching (possibly solving captcha)..."
},
paging: true,
lengthChange: false,
pageLength: 5,
lengthChange: true,
pageLength: {{ settings.general.page_size_manual_search }},
lengthMenu: [ 5, 10, 15, 20, 25 ],
searching: false,
ordering: false,
processing: true,
@ -599,7 +600,7 @@
},
{
data: 'uploader',
render: function ( data, type, row ) {
render: function ( data ) {
return '<div class="badge badge-secondary">' + data + '</div>';
}
},

View file

@ -408,8 +408,9 @@
processing: "Searching (possibly solving captcha)..."
},
paging: true,
lengthChange: false,
pageLength: 5,
lengthChange: true,
pageLength: {{ settings.general.page_size_manual_search }},
lengthMenu: [ 5, 10, 15, 20, 25 ],
searching: false,
ordering: false,
processing: true,
@ -476,7 +477,7 @@
}
},
{ data: 'uploader',
render: function ( data, type, row ) {
render: function ( data ) {
return '<div class="badge badge-secondary">' + data + '</div>';
}
},

View file

@ -197,6 +197,20 @@
</select>
</div>
</div>
<div class="row">
<div class="col-sm-2 text-right">
<b>Page Size Manual Search</b>
</div>
<div class="form-group col-sm-4">
<select class="form-control selectpicker" id="settings-general-page_size_manual_search" name="settings-general-page_size_manual_search">
<option value="5">5</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
</select>
</div>
</div>
<br>
<h4>Logging</h4>
@ -302,6 +316,7 @@
$('#settings-auth-type').val('{{settings.auth.type}}').trigger('change');
$('#settings-proxy-type').val('{{settings.proxy.type}}').trigger('change');
$('#settings-general-page_size').val('{{settings.general.page_size}}');
$('#settings-general-page_size_manual_search').val('{{settings.general.page_size_manual_search}}');
$('#settings-general-branch').val('{{settings.general.branch}}');
$('.selectpicker').selectpicker('refresh')