Skip to content

Commit

Permalink
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions medusa/server/web/home/add_shows.py
Original file line number Diff line number Diff line change
@@ -362,8 +362,8 @@ def existingShows(self):
Prints out the page to add existing shows from a root dir
"""
t = PageTemplate(rh=self, filename='addShows_addExistingShow.mako')
return t.render(enable_anime_options=False, title='Existing Show',
header='Existing Show', topmenu='home',
return t.render(enable_anime_options=True, blacklist=[], whitelist=[], groups=[],
title='Existing Show', header='Existing Show', topmenu='home',
controller='addShows', action='addExistingShow')

def addShowByID(self, indexer_id, show_name=None, indexer="TVDB", which_series=None,
3 changes: 3 additions & 0 deletions static/js/add-shows/add-existing-show.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
MEDUSA.addShows.addExistingShow = function() {
// Hide the black/whitelist, because it can only be used for a single anime show
$.updateBlackWhiteList(undefined);

$('#tableDiv').on('click', '#checkAll', function() {
var seasonCheck = this;
$('.dirCheck').each(function() {
2 changes: 1 addition & 1 deletion static/js/add-shows/new-show.js
Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ MEDUSA.addShows.newShow = function() {

$('#addShowButton').click(function() {
// if they haven't picked a show don't let them submit
if (!$('input:radio[name="whichSeries"]:checked').val() && $('input:hidden[name="whichSeries"]').val().length !== 0) {
if (!$('input:radio[name="whichSeries"]:checked').val() && $('input:hidden[name="whichSeries"]').val().length === 0) {
alert('You must choose a show to continue'); // eslint-disable-line no-alert
return false;
}
2 changes: 1 addition & 1 deletion views/addShows_addExistingShow.mako
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
## @TODO: Fix this stupid hack
<script>document.write('<ul><li><a href="' + document.location.href + '#core-component-group1">Add Existing Show</a></li></ul>')</script>
<div id="core-component-group1" class="tab-pane active component-group">
<form id="addShowForm" method="post" action="addShows/addNewShow" accept-charset="utf-8">
<form id="addShowForm" method="post" action="addShows/addExistingShows" accept-charset="utf-8">
<div id="tabs">
<ul>
<li><a href="${base_url}addShows/existingShows/#tabs-1">Manage Directories</a></li>

0 comments on commit 9c39360

Please sign in to comment.