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

This commit is contained in:
Ruud committed 2012-11-20 21:15:43 +01:00
1 parent 723f720280
commit 2ed72c9098
1 file changed
+3
@@ -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
) )
}
} }