From 414d12793a06bdc3e3e6ebf41c9ce92629909f39 Mon Sep 17 00:00:00 2001 From: Mathieu Sanchez Date: Thu, 29 Nov 2018 10:38:48 +0900 Subject: [PATCH] Correction search and auto update conflict --- src/Config.php | 4 ++-- static/js/javascript.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Config.php b/src/Config.php index 159c42f..93f515b 100644 --- a/src/Config.php +++ b/src/Config.php @@ -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'; diff --git a/static/js/javascript.js b/static/js/javascript.js index 9b13535..ef73152 100644 --- a/static/js/javascript.js +++ b/static/js/javascript.js @@ -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); } }