Browse Source

Fixed onEnter functionality when search for services

pull/92/merge
Ramiro Saenz 9 years ago
parent
commit
761d1ba646
  1. 2
      app/view/main/MainController.js

2
app/view/main/MainController.js

@ -579,7 +579,7 @@ Ext.define('Rambox.view.main.MainController', {
,onSearchEnter: function( field, e ) { ,onSearchEnter: function( field, e ) {
var me = this; var me = this;
if ( e.getKey() == e.ENTER && Ext.getStore('ServicesList').getCount() === 1 ) { if ( e.getKey() == e.ENTER && Ext.getStore('ServicesList').getCount() === 2 ) { // Two because we always shows Custom Service option
me.onNewServiceSelect(field.up().down('dataview'), Ext.getStore('ServicesList').getAt(0)); me.onNewServiceSelect(field.up().down('dataview'), Ext.getStore('ServicesList').getAt(0));
me.onClearClick(field); me.onClearClick(field);
} }

Loading…
Cancel
Save