Browse Source

Show service on logo dbl click

Fixes #377
pull/591/head
Ramiro Saenz 8 years ago
parent
commit
969d7ce07c
  1. 3
      app/view/main/Main.js
  2. 6
      app/view/main/MainController.js

3
app/view/main/Main.js

@ -214,7 +214,8 @@ Ext.define('Rambox.view.main.Main', {
,stripeRows: true ,stripeRows: true
} }
,listeners: { ,listeners: {
edit: 'onRenameService' edit: 'onRenameService'
,rowdblclick: 'showServiceTab'
} }
} }
] ]

6
app/view/main/MainController.js

@ -36,6 +36,12 @@ Ext.define('Rambox.view.main.MainController', {
store.resumeEvent('remove'); store.resumeEvent('remove');
} }
,showServiceTab: function( grid, record, tr, rowIndex, e ) {
if ( e.position.colIdx === 0 ) { // Service Logo
Ext.getCmp('tab_'+record.get('id')).show();
}
}
,onRenameService: function(editor, e) { ,onRenameService: function(editor, e) {
var me = this; var me = this;

Loading…
Cancel
Save