Correction search and auto update conflict
This commit is contained in:
		@@ -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';
 | 
			
		||||
 
 | 
			
		||||
@@ -212,7 +212,9 @@ $(document).ready(() => {
 | 
			
		||||
                contacts = JSON.parse(data).contacts;
 | 
			
		||||
 | 
			
		||||
                $("table tbody").empty();
 | 
			
		||||
                displayContacts(contacts);
 | 
			
		||||
                if ($("#search").val().length <= 0) {
 | 
			
		||||
                    displayContacts(contacts);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        })
 | 
			
		||||
    }, 10000);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user