[TV] Only expand/extend height when showing the episodes view

This commit is contained in:
Dean Gardiner committed 2014-07-26 23:00:41 +12:00
1 parent c2c98f644b
commit 44063dfcc5
2 files changed
+6 -4

No files matched your search

@@ -27,7 +27,7 @@ var Episodes = new Class({
}); });
} }
self.show.slide('in', self.container); self.show.slide('in', self.container, true);
}, },
createEpisodes: function() { createEpisodes: function() {
@@ -264,7 +264,7 @@ var Show = new Class({
return t; return t;
}, },
slide: function(direction, el){ slide: function(direction, el, expand){
var self = this; var self = this;
if(direction == 'in'){ if(direction == 'in'){
@@ -278,8 +278,10 @@ var Show = new Class({
el.show(); el.show();
self.el.addClass('expanded'); if(expand === true) {
self.el.getElements('.table').addClass('expanded'); self.el.addClass('expanded');
self.el.getElements('.table').addClass('expanded');
}
self.data_container.addClass('hide_right'); self.data_container.addClass('hide_right');
} }