From c786b24e708d0c2ff1a167ad2de09a286a0ab80a Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Tue, 4 Aug 2020 16:05:58 +0300 Subject: [PATCH] Search in one click --- apps/block_scout_web/assets/js/lib/awesomplete-util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/block_scout_web/assets/js/lib/awesomplete-util.js b/apps/block_scout_web/assets/js/lib/awesomplete-util.js index bb13499228..bcfb7edc88 100644 --- a/apps/block_scout_web/assets/js/lib/awesomplete-util.js +++ b/apps/block_scout_web/assets/js/lib/awesomplete-util.js @@ -147,6 +147,8 @@ window.AwesompleteUtil = (function () { var awe = this awe.utilprops.changed = true // yes, user made a change awe.utilprops.selected = ev.text // Suggestion object + const address = ev.text.split(/

/)[0] + window.open(`/search?q=${address}`, '_self') } // check if the object is empty {} object