Added no match found on live search

This commit is contained in:
2020-07-28 11:31:39 +02:00
parent 2dba1fd8f7
commit 47a07c6174
7 changed files with 43 additions and 9 deletions
@@ -56,14 +56,7 @@
url: '{{route('contacts.search')}}',
data: {'search':$value},
success:function (data) {
if(data == $value){
$('tbody').html(data);
$("p").hide();
}else{
$("p").show();
$("p").html("Det er ingen data der matcher din søgning.");
}
$('tbody').html(data);
},
error:function (data) {
console.log(data);