Skip to content

Commit

Permalink
Set field Search when it is changed even if text field is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
amdomanska committed Jul 31, 2023
1 parent fd42500 commit 6f87cb3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions portality/static/js/doaj.fieldrender.edges.js
Original file line number Diff line number Diff line change
Expand Up @@ -1551,13 +1551,12 @@ $.extend(true, doaj, {
var textIdSelector = edges.css_id_selector(this.namespace, "text", this);
var text = this.component.jq(textIdSelector).val();

if (text === "") {
return;
}

// if there is search text, then proceed to run the search
var val = this.component.jq(element).val();
this.component.setSearchField(val, false);
if (text === "") {
return;
}
this.component.setSearchText(text);
};

Expand Down

0 comments on commit 6f87cb3

Please sign in to comment.