From 761d1ba646fbd474b0c961b2d1783560553ec99f Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Mon, 4 Jul 2016 19:10:43 -0300 Subject: [PATCH] Fixed onEnter functionality when search for services --- app/view/main/MainController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/view/main/MainController.js b/app/view/main/MainController.js index 8488f661..9f0d50c1 100644 --- a/app/view/main/MainController.js +++ b/app/view/main/MainController.js @@ -579,7 +579,7 @@ Ext.define('Rambox.view.main.MainController', { ,onSearchEnter: function( field, e ) { 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.onClearClick(field); }