Revert "Added no match found on live search"

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