mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-30 03:09:13 +01:00
use links instead of items
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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
|
||||
}]
|
||||
|
||||
@@ -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) ){
|
||||
|
||||
Reference in New Issue
Block a user