More elegant

This commit is contained in:
andreubisquerra 2020-08-04 08:19:27 +02:00 committed by GitHub
parent 6d957c276c
commit 0347f2a46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -530,7 +530,6 @@ function Search2(keyCodeForEnter) {
}
}
if (eventKeyCode == keyCodeForEnter){
ClearSearch();
if (data.length == 0) {
$('#search').val('<?php
$langs->load('errors');
@ -538,6 +537,7 @@ function Search2(keyCodeForEnter) {
?>');
$('#search').select();
}
else ClearSearch();
}
});
}