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); } }