From 11f34431a647fedc3118c36bdb2826db551d0b1f Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 1 Mar 2018 15:00:55 -0500 Subject: [PATCH] Disable the submit button when using autocomplete If they use autocomplete then hit the submit they get back no results. --- views/admin/contacts/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/admin/contacts/index.html b/views/admin/contacts/index.html index f278f30..9856f82 100644 --- a/views/admin/contacts/index.html +++ b/views/admin/contacts/index.html @@ -25,7 +25,7 @@    Text Search: - +
@@ -132,6 +132,8 @@ select: function( event, ui ) { var contactID = ui.item.id; var memberID = ui.item.member; + // When they hit the autocomplete disable the submit button + $('#glmContactSearchSubmit').prop('disabled', true); window.location.replace("{$adminUrl}?page=glm-members-admin-menu-member&glm_action=contacts&option=edit&member=" + memberID + "&contact=" + contactID ); }, response: function(event, ui) { -- 2.17.1