Show active page. fix #373

This commit is contained in:
Ruud
2012-05-31 22:09:42 +02:00
parent 3790b04de4
commit 5fb0dbf5d9
4 changed files with 31 additions and 13 deletions
+2 -1
View File
@@ -20,7 +20,7 @@ var PageBase = new Class({
// Create tab for page
if(self.has_tab){
var nav = App.getBlock('navigation');
self.tab = nav.addTab({
self.tab = nav.addTab(self.name, {
'href': App.createUrl(self.name),
'title': self.title,
'text': self.name.capitalize()
@@ -39,6 +39,7 @@ var PageBase = new Class({
self.el.adopt(elements);
}
App.getBlock('navigation').activate(self.name);
self.fireEvent('opened');
}
catch (e){