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:
parent
141de66416
commit
0fc19fe00f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue