Correction search and auto update conflict

This commit is contained in:
Mathieu Sanchez 2018-11-29 10:38:48 +09:00
parent 94e727721b
commit 414d12793a
2 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@
namespace CAUProject3Contact;
class Config {
const SITE_JS_VERSION = '0.03';
const SITE_CSS_VERSION = '0.03';
const SITE_JS_VERSION = '0.04';
const SITE_CSS_VERSION = '0.04';
const TITLE_HEADER = 'Your contact';
const DESCRIPTION_HEADER = 'Manage your contact easly';

View File

@ -211,8 +211,8 @@ $(document).ready(() => {
success: function (data) {
contacts = JSON.parse(data).contacts;
$("table tbody").empty();
if ($("#search").val().length <= 0) {
$("table tbody").empty();
displayContacts(contacts);
}
}