From c1795a55e807b1c35eb2b09546a941ff505d8ea0 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Thu, 10 Jul 2014 14:12:38 +0000
Subject: [PATCH] SSDM-557: Search with less than 3 characters allowed with
 alert.

SVN: 32022
---
 .../webapps/newbrowser/html/js/controllers/MainController.js  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/controllers/MainController.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/controllers/MainController.js
index d9ef775705a..e1d62dd6ff1 100644
--- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/controllers/MainController.js
+++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/controllers/MainController.js
@@ -413,7 +413,9 @@ function MainController(profile) {
 	this.lastSearchId = 0; //Used to discard search responses that don't pertain to the last search call.
 	
 	this._showSearchPage = function(value) {
-		//Only search with at least 3 characters
+		if(value.length === 0) {
+			return;
+		}
 		
 		this.lastSearchId++;
 		var localSearchId = this.lastSearchId;
-- 
GitLab