Fix error popup from coming up when show is selected without expanding

This commit is contained in:
Supremicus 2015-02-28 13:05:20 +10:00
parent c01b8b3015
commit a2c7413d9a
3 changed files with 6 additions and 8 deletions

View file

@ -16,7 +16,7 @@
* Change autoProcessTV scripts python code quotes from " -> '
* Add expand all button to Episode Status Management
* Add Unknown status query to Episode Status Management
* Fix Episode Status Management error popup from coming up when show is selected without expanding
[develop changelog]
* Fix traceback error when using the menu item Manage/Update Kodi

View file

@ -41,7 +41,7 @@
<h3>${len($sorted_show_ids)} Shows containing <span class="grey-text">$common.statusStrings[$int($whichStatus)]</span> episodes</h3>
#if $whichStatus in ($common.ARCHIVED, $common.IGNORED, $common.SNATCHED):
#set $row_class = "good"
#set $row_class = 'good'
#else
#set $row_class = $common.Overview.overviewStrings[$whichStatus]
#end if

View file

@ -16,12 +16,10 @@ $(document).ready(function() {
}
$('.go').click(function() {
var selected;
if (selected = (0 === $('input[class*="-epcheck"]:checked').length))
alert('Please select at least one episode');
return !selected
if ($('input[class*="-epcheck"]:checked').length === 0 && $('input[id*="allCheck-"]:checked').length === 0) {
alert('Please select at least one Show or Episode');
return false
}
});
$('.allCheck').click(function(){