From: Steve Sutton Date: Thu, 9 Aug 2018 11:54:27 +0000 (-0400) Subject: Fix bug in javascript code. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=784044a48cc4088dbe5e029c7e4aed35a18b3984;p=WP-Plugins%2Fglm-member-db-contacts.git Fix bug in javascript code. Add city name wasn't working. --- diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index 81ed55b..6b57e43 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -1091,7 +1091,7 @@ // Get new city name var newCityName = $('#newCityName').val(); - newCityName = $('#newCityName').replace(/"/g, ''); + newCityName = newCityName.replace(/"/g, ''); // If no name is supplied, notify used it's required if (newCityName == '') { @@ -1153,7 +1153,7 @@ // Get new city name var newBusinessCityName = $('#newBusinessCityName').val(); - newBusinessCityName = $('#newBusinessCityName').replace(/"/g, ''); + newBusinessCityName = newBusinessCityName.replace(/"/g, ''); // If no name is supplied, notify used it's required if (newBusinessCityName == '') {