Commit 97cfd9b1 by Tuomas Riihimäki

Enter did not work after adding buttons before search button in the form. Added …

…extra hidden buttonat the very start of form
1 parent 8ad6963c
Showing with 3 additions and 3 deletions
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
<h1>#{i18n['userlist.header']}</h1> <h1>#{i18n['userlist.header']}</h1>
<h:form id="pageform" styleClass="useradmin_list"> <h:form id="pageform" styleClass="useradmin_list">
<!-- This is here, so that pressing enter works correctly. -->
<p:commandButton style="display: none;" action="#{userSearchView.newSearch()}" ajax="false" />
<p:panelGrid style="width: 100%;"> <p:panelGrid style="width: 100%;">
<p:row> <p:row>
...@@ -52,9 +54,7 @@ ...@@ -52,9 +54,7 @@
<f:selectItems value="#{userSearchView.searchQuery.cardStates}" var="r" itemLabel="#{r}" /> <f:selectItems value="#{userSearchView.searchQuery.cardStates}" var="r" itemLabel="#{r}" />
</p:selectManyCheckbox> </p:selectManyCheckbox>
<h3> <h3>Muut</h3>
Muut
</h3>
<p:selectBooleanCheckbox id="placeassoc" value="#{userSearchView.searchQuery.placeAssoc}" /> <p:selectBooleanCheckbox id="placeassoc" value="#{userSearchView.searchQuery.placeAssoc}" />
<p:outputLabel for="placeassoc" value="#{i18n['userlist.placeassoc']}" /> <p:outputLabel for="placeassoc" value="#{i18n['userlist.placeassoc']}" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!