diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js index b9ac324308af6951f7176e25e1831a6b0a092ed2..05646607ab0ee1e65b25f1f122f07535850c7073 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js @@ -129,7 +129,14 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) { var searchElement = $("<input>", {"id": "search", "type": "text", "class": "form-control search-query", "placeholder": "Search"}); - searchElement.change(searchFunction); + searchElement.keypress(function (e) { + var key = e.which; + if(key == 13) // the enter key code + { + searchFunction(); + return false; + } + }); searchElement.css({"width" : "68%"}); searchElement.css({"padding-right" : "0px"}); searchElement.css({"margin-right" : "2px"});