Private GIT

Skip to content
Snippets Groups Projects
Commit c9cc7154 authored by Fernando's avatar Fernando
Browse files

Merge pull request #2623 from OmgImAlexis/lint-newapi

Lint new API Builder
parents 9aa75816 b8ae6c01
No related branches found
No related tags found
No related merge requests found
...@@ -21,9 +21,7 @@ $(document).ready(function () { ...@@ -21,9 +21,7 @@ $(document).ready(function () {
} }
}); });
if (profile) { if(profile) url += '&profile=1';
url += '&profile=1';
}
var requestTime = new Date().getTime(); var requestTime = new Date().getTime();
$.get(url, function (data, textStatus, jqXHR) { $.get(url, function (data, textStatus, jqXHR) {
...@@ -53,8 +51,7 @@ $(document).ready(function () { ...@@ -53,8 +51,7 @@ $(document).ready(function () {
// Remove the result of an API call // Remove the result of an API call
$('[data-action=clear-result]').on('click', function() { $('[data-action=clear-result]').on('click', function() {
$($(this).data('target')).html('') $($(this).data('target')).html('').parents('.result-wrapper').addClass('hidden');
.parents('.result-wrapper').addClass('hidden');
}); });
// Update the list of episodes // Update the list of episodes
...@@ -90,7 +87,7 @@ $(document).ready(function () { ...@@ -90,7 +87,7 @@ $(document).ready(function () {
for(var season in episodes[show]) { for(var season in episodes[show]) {
select.append($('<option>', { select.append($('<option>', {
value: season, value: season,
label: (season == 0) ? 'Specials' : 'Season ' + season, label: (season === 0) ? 'Specials' : 'Season ' + season,
})); }));
} }
} }
...@@ -105,7 +102,6 @@ $(document).ready(function () { ...@@ -105,7 +102,6 @@ $(document).ready(function () {
if(command) { if(command) {
var commandId = command.replace('.', '-'); var commandId = command.replace('.', '-');
$('[href=#command-' + commandId + ']').click(); $('[href=#command-' + commandId + ']').click();
} }
}); });
......
<%! <%!
import sickbeard import sickbeard
%> %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment