Skip to content

Commit

Permalink
removed searchField ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Beechwell committed Dec 15, 2020
1 parent cd93118 commit d5fcf4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</c:choose>
<div class="input-group">
<h:inputText
id="searchField"
onfocus="this.value=''"
styleClass="form-control -no-outline"
value="#{searchBean.invisibleSearchString}">
<f:passThroughAttribute name="placeholder" value="#{cc.attrs.widget.hasWidgetTitle ? msg[cc.attrs.widget.widgetTitle] : msg.search}" />
Expand All @@ -38,14 +38,14 @@
<div class="input-group-addon">
<c:choose>
<c:when test="#{cc.attrs.widget.hasLinkedPages}">
<button id="widgetSearchFieldBtn_cms" class="btn btn-default" aria-label="#{msg.search}" jsf:action="#{cc.attrs.widget.linkedPages.search.searchSimple}">
<button class="btn btn-default" aria-label="#{msg.search}" jsf:action="#{cc.attrs.widget.linkedPages.search.searchSimple}">
<f:setPropertyActionListener for="actionEvent" target="#{searchBean.activeSearchType}" value="0" />
<f:setPropertyActionListener for="actionEvent" target="#{searchBean.facets.currentFacetString}" value="#{cc.attrs.widget.additionalQuery}" />
<i class="fa fa-search"/>
</button>
</c:when>
<c:otherwise>
<button id="widgetSearchFieldBtn" class="btn btn-default" aria-label="#{msg.search}" jsf:action="#{searchBean.searchSimpleSetFacets(cc.attrs.widget.additionalQuery)}">
<button class="btn btn-default" aria-label="#{msg.search}" jsf:action="#{searchBean.searchSimpleSetFacets(cc.attrs.widget.additionalQuery)}">
<f:setPropertyActionListener for="actionEvent" target="#{searchBean.activeSearchType}" value="0" />
<f:setPropertyActionListener for="actionEvent" target="#{searchBean.facets.currentFacetString}" value="#{cc.attrs.widget.additionalQuery}" />
<i class="fa fa-search"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,6 @@ var viewerJS = (function () {
$(href).collapse('show');
});

// reset searchfield on focus
$('body').on('focus', 'input[id*="searchField"]', function () {
$(this).val('');
});

// init search drilldown filter
if (_defaults.activateDrilldownFilter) {
this.initDrillDownFilters();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,6 @@
$(href).collapse('show');
});

// reset searchfield on focus
$('body').on('focus', 'input[id*="searchField"]', function () {
$(this).val('');
});

// init search drilldown filter
if (_defaults.activateDrilldownFilter) {
this.initDrillDownFilters();
Expand Down

0 comments on commit d5fcf4d

Please sign in to comment.