Browse Source

Hide subpages when switching page

pull/5180/head
Ruud 10 years ago
parent
commit
a3aec3b4e0
  1. 10
      couchpotato/static/scripts/page.js

10
couchpotato/static/scripts/page.js

@ -134,7 +134,15 @@ var PageBase = new Class({
},
hide: function(){
this.el.removeClass('active');
var self = this;
self.el.removeClass('active');
if(self.sub_pages){
self.sub_pages.each(function(sub_page){
sub_page['class'].hide();
});
}
},
toElement: function(){

Loading…
Cancel
Save