Browse Source

Don't show button bar when there aren't any releases

pull/1069/merge
Ruud 13 years ago
parent
commit
2ed72c9098
  1. 3
      couchpotato/core/plugins/movie/static/movie.js

3
couchpotato/core/plugins/movie/static/movie.js

@ -479,6 +479,8 @@ var ReleaseAction = new Class({
self.release_container.getElement('#release_'+self.next_release.id).addClass('next_release'); self.release_container.getElement('#release_'+self.next_release.id).addClass('next_release');
} }
if(self.next_release || self.last_release){
self.trynext_container.adopt( self.trynext_container.adopt(
new Element('span.or', { new Element('span.or', {
'text': 'This movie is snatched, if anything went wrong, download' 'text': 'This movie is snatched, if anything went wrong, download'
@ -502,6 +504,7 @@ var ReleaseAction = new Class({
'text': 'or pick one below' 'text': 'or pick one below'
})] : null })] : null
) )
}
} }

Loading…
Cancel
Save