Skip to content
Snippets Groups Projects
Commit 9845cbfa authored by juanf's avatar juanf
Browse files

SSDM-4218 : Search field fix

SVN: 37170
parent 5bbc1919
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,14 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) { ...@@ -129,7 +129,14 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) {
var searchElement = $("<input>", {"id": "search", "type": "text", "class": "form-control search-query", "placeholder": "Search"}); 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({"width" : "68%"});
searchElement.css({"padding-right" : "0px"}); searchElement.css({"padding-right" : "0px"});
searchElement.css({"margin-right" : "2px"}); searchElement.css({"margin-right" : "2px"});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment