Private GIT

Skip to content
Snippets Groups Projects
Commit 2a8a5b92 authored by Alexandre Beloin's avatar Alexandre Beloin
Browse files

Merge pull request #1704 from fernandog/add_show_whitespace

Remove white spaces from add show search string
parents cdcb2274 29b4f6c0
No related branches found
No related tags found
No related merge requests found
...@@ -9,12 +9,12 @@ $(document).ready(function () { ...@@ -9,12 +9,12 @@ $(document).ready(function () {
if (searchRequestXhr) searchRequestXhr.abort(); if (searchRequestXhr) searchRequestXhr.abort();
var searchingFor = $('#nameToSearch').val() + ' on ' + $('#providedIndexer option:selected').text() + ' in ' + $('#indexerLangSelect').val(); var searchingFor = $('#nameToSearch').val().trim() + ' on ' + $('#providedIndexer option:selected').text() + ' in ' + $('#indexerLangSelect').val();
$('#searchResults').empty().html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32' + themeSpinner + '.gif" height="32" width="32" /> searching ' + searchingFor + '...'); $('#searchResults').empty().html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32' + themeSpinner + '.gif" height="32" width="32" /> searching ' + searchingFor + '...');
searchRequestXhr = $.ajax({ searchRequestXhr = $.ajax({
url: sbRoot + '/home/addShows/searchIndexersForShowName', url: sbRoot + '/home/addShows/searchIndexersForShowName',
data: {'search_term': $('#nameToSearch').val(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()}, data: {'search_term': $('#nameToSearch').val().trim(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()},
timeout: parseInt($('#indexer_timeout').val(), 10) * 1000, timeout: parseInt($('#indexer_timeout').val(), 10) * 1000,
dataType: 'json', dataType: 'json',
error: function () { error: function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment