Skip to content

Commit

Permalink
Update description of text search
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksptang committed Nov 6, 2024
1 parent 1a10899 commit 5500251
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion step-core/src/main/resources/HtmlBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ suggested_search_words=Suggested search word(s)
search_range=Range
click_to_select=Click to select/unselect
click_to_select_search_range=Click to select search range
search_type_desc_text=Find the exact word(s):<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ words starting with
search_type_desc_text=Find the exact word(s)
search_type_desc_text2=:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ words starting with
search_type_desc_subject=Find verses about
search_type_desc_meanings=Find all words meaning
search_type_desc_greekMeanings=<b>Greek</b> words meaning
Expand Down
5 changes: 5 additions & 0 deletions step-web/src/main/webapp/js/search_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,7 @@ step.searchSelect = {
limitType, null, false, false, "", ""); //, hasHebrew, hasGreek);
text2Display = '"' + str2Search + '"';
str2Search = '%22' + str2Search + '%22';
$("td.search-type-column.select-text").html(__s.search_type_desc_text);
}
else {
if ((str2Search.slice(-1) !== "*") && (!step.searchSelect.wordsWithNoInflection(str2Search))) {
Expand All @@ -1420,6 +1421,10 @@ step.searchSelect = {
limitType, null, false, false, "", ""); // , hasHebrew, hasGreek);
text2Display = str2Search + "* (" + __s.words_that_start_with + " " + str2Search + ")";
str2Search += "*";
$("td.search-type-column.select-text").html(__s.search_type_desc_text);
// Add search_type_desc_text2 to description, if user's language has a definition for it. English already has a definition for it.
if ((step.userLanguageCode === "en") || (__s.search_type_desc_text2.indexOf("+ words starting with") == -1))
$("td.search-type-column.select-text").html(__s.search_type_desc_text + __s.search_type_desc_text2);
}
suffixToDisplay = "<b>" +__s.default_search + "</b>";
suffixTitle = __s.default_search_mouse_over_title;
Expand Down

0 comments on commit 5500251

Please sign in to comment.