Skip to content

Commit

Permalink
fix xo errors (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgImAlexis authored and fernandog committed Sep 18, 2016
1 parent 88479d5 commit 6966c62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gui/slick/js/config-providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $(document).ready(function() { // eslint-disable-line max-lines

var params = {url: url, name: name, key: key};

$('.updating_categories').wrapInner('<span><img src="images/loading16' + MEDUSA.info.themeSpinner + '.gif"> Updating Categories ...</span>');
$('.updating_categories').wrapInner('<span><img src="images/loading16' + MEDUSA.info.themeSpinner + '.gif"> Updating Categories ...</span>'); // eslint-disable-line no-undef
var jqxhr = $.getJSON('config/providers/getNewznabCategories', params, function(data) {
$(this).updateNewznabCaps(data, selectedProvider);
console.debug(data.tv_categories);
Expand Down Expand Up @@ -75,7 +75,7 @@ $(document).ready(function() { // eslint-disable-line max-lines
$('#editANewznabProvider').addOption(id, name);

if ($('#provider_order_list > #' + id).length === 0 && showProvider !== false) {
var toAdd = '<li class="ui-state-default" id="' + id + '"> <input type="checkbox" id="enable_' + id + '" class="provider_enabler" CHECKED> <a href="' + MEDUSA.info.anonURL + url + '" class="imgLink" target="_new"><img src="images/providers/newznab.png" alt="' + name + '" width="16" height="16"></a> ' + name + '</li>';
var toAdd = '<li class="ui-state-default" id="' + id + '"> <input type="checkbox" id="enable_' + id + '" class="provider_enabler" CHECKED> <a href="' + MEDUSA.info.anonURL + url + '" class="imgLink" target="_new"><img src="images/providers/newznab.png" alt="' + name + '" width="16" height="16"></a> ' + name + '</li>'; // eslint-disable-line no-undef

$('#provider_order_list').append(toAdd);
$('#provider_order_list').sortable('refresh');
Expand All @@ -92,7 +92,7 @@ $(document).ready(function() { // eslint-disable-line max-lines
$(this).populateTorrentRssSection();

if ($('#provider_order_list > #' + id).length === 0) {
$('#provider_order_list').append('<li class="ui-state-default" id="' + id + '"> <input type="checkbox" id="enable_' + id + '" class="provider_enabler" CHECKED> <a href="' + MEDUSA.info.anonURL + url + '" class="imgLink" target="_new"><img src="images/providers/torrentrss.png" alt="' + name + '" width="16" height="16"></a> ' + name + '</li>');
$('#provider_order_list').append('<li class="ui-state-default" id="' + id + '"> <input type="checkbox" id="enable_' + id + '" class="provider_enabler" CHECKED> <a href="' + MEDUSA.info.anonURL + url + '" class="imgLink" target="_new"><img src="images/providers/torrentrss.png" alt="' + name + '" width="16" height="16"></a> ' + name + '</li>'); // eslint-disable-line no-undef
$('#provider_order_list').sortable('refresh');
}

Expand Down
2 changes: 1 addition & 1 deletion gui/slick/js/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $.tablesorter.addParser({
if (s.indexOf('Loading...') === 0) {
return s.replace('Loading...', '000');
}
return (MEDUSA.info.sortArticle ? (s || '') : (s || '').replace(/^(The|A|An)\s/i, ''));
return (MEDUSA.info.sortArticle ? (s || '') : (s || '').replace(/^(The|A|An)\s/i, '')); // eslint-disable-line no-undef
},
type: 'text'
});
Expand Down
2 changes: 1 addition & 1 deletion gui/slick/js/trending-shows.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $(document).ready(function() {
getSortData: {
name: function(itemElem) {
var name = $(itemElem).attr('data-name') || '';
return (MEDUSA.info.sortArticle ? name : name.replace(/^(The|A|An)\s/i, '')).toLowerCase();
return (MEDUSA.info.sortArticle ? name : name.replace(/^(The|A|An)\s/i, '')).toLowerCase(); // eslint-disable-line no-undef
},
rating: '[data-rating] parseInt',
votes: '[data-votes] parseInt'
Expand Down

0 comments on commit 6966c62

Please sign in to comment.