|
|
|
@ -127,6 +127,14 @@ ipc.on('reloadCurrentService', function(e) {
|
|
|
|
|
var tab = Ext.cq1('app-main').getActiveTab(); |
|
|
|
|
if ( tab.id !== 'ramboxTab' ) tab.reloadService(); |
|
|
|
|
}); |
|
|
|
|
// Toggle Status Bar
|
|
|
|
|
ipc.on('toggleStatusBar', function() { |
|
|
|
|
var tab = Ext.cq1('app-main').getActiveTab(); |
|
|
|
|
|
|
|
|
|
if ( tab.id !== 'ramboxTab' ) { |
|
|
|
|
tab.down('statusbar').closed ? tab.setStatusBar(tab.record.get('statusbar')) : tab.closeStatusBar(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// Focus the current service when Alt + Tab or click in webviews textfields
|
|
|
|
|
window.addEventListener('focus', function() { |
|
|
|
|
if(Ext.cq1("app-main")) Ext.cq1("app-main").getActiveTab().down('component').el.dom.focus(); |
|
|
|
|