From 96259b02c5bf8d667c6def8ec85bc6393944009d Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 27 Jan 2019 21:19:56 -0500 Subject: [PATCH] Removed page length dropdown in manual search dialog. --- views/episodes.tpl | 7 ++++--- views/movie.tpl | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/views/episodes.tpl b/views/episodes.tpl index 720ae0d0f..d0d8cb409 100644 --- a/views/episodes.tpl +++ b/views/episodes.tpl @@ -472,7 +472,7 @@ hi: hi, sonarrSeriesId: sonarrSeriesId, sonarrEpisodeId: sonarrEpisodeId, - title: '{{!details[0].replace("'", "\\'")}}' + title: '{{!details[0].replace("'", "\'")}}' }; $('#search_result').DataTable( { @@ -482,12 +482,13 @@ zeroRecords: 'No subtitles found for this episode' }, paging: true, + lengthChange: false, + pageLength: 5, searching: false, ordering: false, processing: false, serverSide: false, - lengthMenu: [ [ 5, 10, 25, 50, 100 , -1 ] , [ 5, 10, 25, 50, 100, "All" ] ], - ajax: { + ajax: { url: '{{base_url}}manual_search', type: 'POST', data: values diff --git a/views/movie.tpl b/views/movie.tpl index 713af411c..560c7fc87 100644 --- a/views/movie.tpl +++ b/views/movie.tpl @@ -417,7 +417,7 @@ language: language, hi: hi, radarrId: radarrId, - title: '{{!details[0].replace("'", "\\'")}}' + title: '{{!details[0].replace("'", "\'")}}' }; $('#search_result').DataTable( { @@ -427,12 +427,13 @@ zeroRecords: 'No subtitles found for this movie' }, paging: true, + lengthChange: false, + pageLength: 5, searching: false, ordering: false, processing: false, serverSide: false, - lengthMenu: [ [ 5, 10, 25, 50, 100 , -1 ] , [ 5, 10, 25, 50, 100, "All" ] ], - ajax: { + ajax: { url: '{{base_url}}manual_search_movie', type: 'POST', data: values