Bug 41040: Use tooltip for message instead of alert

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2025-11-04 10:07:55 -05:00 committed by Laura Escamilla
parent 141de66416
commit 0fc19fe00f
No known key found for this signature in database
GPG Key ID: 6B1D9CA1AF817BC3
1 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,12 @@
const categorySelected = form.categorycode_filter && form.categorycode_filter.value !== "";
if (!searchTerm && !branchSelected && !categorySelected) {
alert("Please enter a search term or select a library/category");
$(form.searchmember)
.tooltip({ trigger: "manual", placement: "bottom", title: _("Search criterea required") })
.tooltip("show");
$(document).on("click", function () {
$(form.searchmember).tooltip("hide");
});
return false;
}
return true;