Skip to content

Commit

Permalink
some fixes for full text search in the popup window
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Apr 30, 2017
1 parent 8095256 commit 377dba1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -45,7 +45,7 @@
</div>

<div class="form-group" style="vertical-align: top;" wicket:id="searchContainer">
<a wicket:id="searchSimple" class="btn btn-sm btn-primary">
<a wicket:id="searchSimple" class="btn btn-sm btn-primary" about="searchSimple">
<i class="fa fa-search fa-lg"/>
</a>
<div wicket:id="searchDropdown">
Expand Down
Expand Up @@ -185,7 +185,6 @@ protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
searchPerformed(target);
}
};
searchSimple.setMarkupId(ID_SEARCH_SIMPLE);
searchSimple.add(new VisibleEnableBehaviour() {

@Override
Expand Down Expand Up @@ -360,8 +359,8 @@ protected void onUpdate(AjaxRequestTarget target) {
public void bind(Component component) {
super.bind( component );

component.add( AttributeModifier.replace( "onkeydown", Model.of("if(event.keyCode == 13) {document.getElementById('"+
ID_SEARCH_SIMPLE +"').click();}") ) );
component.add( AttributeModifier.replace( "onkeydown",
Model.of("if(event.keyCode == 13) {$('[about=\"searchSimple\"]').click();}") ) );
}
});
fullTextInput.setOutputMarkupId(true);
Expand Down

0 comments on commit 377dba1

Please sign in to comment.