From: Steve Sutton Date: Thu, 1 Mar 2018 20:00:55 +0000 (-0500) Subject: Disable the submit button when using autocomplete X-Git-Tag: v1.1.7^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=11f34431a647fedc3118c36bdb2826db551d0b1f;p=WP-Plugins%2Fglm-member-db-contacts.git Disable the submit button when using autocomplete If they use autocomplete then hit the submit they get back no results. --- 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) {