mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-30 19:02:34 +00:00
add page size option for manual search results
This commit is contained in:
parent
9bd36cf137
commit
c60a64790d
4 changed files with 24 additions and 6 deletions
|
@ -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',
|
||||
|
|
|
@ -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>';
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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>';
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue