use links instead of items

This commit is contained in:
Sebastian Sdorra
2011-03-07 17:11:07 +01:00
parent 0a95eaf1e2
commit d6bab7da45
3 changed files with 2 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ loginCallbacks.push(function(){
var count = navPanel.count() - 1;
navPanel.insertSection(count, {
title: 'Development',
items: [{
links: [{
label: 'Injection Graph',
fn: function(){
window.open('graph.dot');

View File

@@ -59,7 +59,7 @@ loginCallbacks.push(function(){
var count = navPanel.count() - 1;
navPanel.insertSection(count, {
title: 'Hello World',
items: [{
links: [{
label: 'Say Hello',
fn: sayHello
}]

View File

@@ -68,7 +68,6 @@ Sonia.navigation.NavSection = Ext.extend(Ext.Panel, {
},
doAction: function(e, t){
console.debug( t );
e.stopEvent();
Ext.each(this.links, function(navItem){
if ( navItem.id == t.id && Ext.isFunction(navItem.fn) ){