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

SSDM-2597 : Launch search with enter

SVN: 37280
parent 46545f29
No related branches found
No related tags found
No related merge requests found
...@@ -142,6 +142,16 @@ function AdvancedSearchView(advancedSearchController, advancedSearchModel) { ...@@ -142,6 +142,16 @@ function AdvancedSearchView(advancedSearchController, advancedSearchModel) {
var selectedValue = $thisComponent.val(); var selectedValue = $thisComponent.val();
_this._advancedSearchModel.criteria.rules[uuid].value = selectedValue; //Update model _this._advancedSearchModel.criteria.rules[uuid].value = selectedValue; //Update model
}); });
$fieldValue.keypress(function (e) {
var key = e.which;
if(key == 13) // the enter key code
{
_this._advancedSearchController.search();
return false;
}
});
var $newFieldNameContainer = $("<td>"); var $newFieldNameContainer = $("<td>");
$newRow.append($("<td>").append(this._getNewFieldTypeDropdownComponent($newFieldNameContainer, this._advancedSearchModel.criteria.entityKind, uuidValue))) $newRow.append($("<td>").append(this._getNewFieldTypeDropdownComponent($newFieldNameContainer, this._advancedSearchModel.criteria.entityKind, uuidValue)))
......
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