Correction search and auto update conflict

This commit is contained in:
Mathieu Sanchez 2018-11-29 10:36:39 +09:00
parent 78404e7314
commit 94e727721b
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -212,7 +212,9 @@ $(document).ready(() => {
contacts = JSON.parse(data).contacts;
$("table tbody").empty();
displayContacts(contacts);
if ($("#search").val().length <= 0) {
displayContacts(contacts);
}
}
})
}, 10000);