accent commit and source link

This commit is contained in:
Sebastian Sdorra
2011-06-24 17:13:54 +02:00
parent bade42bec4
commit 462911edcf
3 changed files with 9 additions and 1 deletions

View File

@@ -37,7 +37,13 @@ Sonia.util.Link = Ext.extend(Ext.BoxComponent, {
constructor: function(config) {
config = config || {};
config.xtype = 'box';
config.autoEl = { tag: 'a', html: config.text, href: '#' };
config.autoEl = {
tag: 'a',
html: config.text,
href: '#',
style: config.style,
'class': config['class']
};
config.listeners = {
render: function(c) {
c.getEl().on('click', function(){