diff --git a/step-web/src/main/webapp/js/search_selection.js b/step-web/src/main/webapp/js/search_selection.js index be6aa6a033..d1c08c939b 100644 --- a/step-web/src/main/webapp/js/search_selection.js +++ b/step-web/src/main/webapp/js/search_selection.js @@ -794,9 +794,8 @@ step.searchSelect = { '
' + '

' + '
'; - if ((!onlyDisplaySpecifiedBooks) && (!step.touchDevice) && ($("#keyboardEntry").length == 1)) { + if ((!onlyDisplaySpecifiedBooks) && (!step.touchDevice) && ($("#keyboardEntry").length == 0)) $('.footer').prepend('Keyboard entry'); - } return html; }, @@ -1391,6 +1390,7 @@ step.searchSelect = { str2Search = strings2Search.join(" "); text2Display = str2Search; } + $("td.search-type-column.select-text").html(__s.search_type_desc_text + ":"); if (strings2Search.length > 1) { var defaultSearchString = ""; var defaultMouseOverTitle = ""; @@ -1412,7 +1412,6 @@ 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))) { @@ -1421,7 +1420,6 @@ 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 + ":"); diff --git a/step-web/src/main/webapp/js/step.util.js b/step-web/src/main/webapp/js/step.util.js index fbd13d88f5..3c98bf7066 100644 --- a/step-web/src/main/webapp/js/step.util.js +++ b/step-web/src/main/webapp/js/step.util.js @@ -2844,9 +2844,8 @@ step.util = { bookSummary += "" + osisID + " " + curChapter + "-" + endOfHeader + "" + summary[jsonName] + ""; } jsonName = "chapter_" + curChapter + "_description"; - if ((typeof summary[jsonName] === "string") && (summary[jsonName] !== "*") && (summary[jsonName] !== "")) { - bookSummary += '' + osisID + " " + curChapter + "" + summary[jsonName] + ""; - } + if ((typeof summary[jsonName] === "string") && (summary[jsonName] !== "*") && (summary[jsonName] !== "")) + bookSummary += '' + osisID + " " + curChapter + "" + summary[jsonName] + ""; } bookSummary += "
"; }