More elegant
This commit is contained in:
parent
6d957c276c
commit
0347f2a46b
@ -530,7 +530,6 @@ function Search2(keyCodeForEnter) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (eventKeyCode == keyCodeForEnter){
|
if (eventKeyCode == keyCodeForEnter){
|
||||||
ClearSearch();
|
|
||||||
if (data.length == 0) {
|
if (data.length == 0) {
|
||||||
$('#search').val('<?php
|
$('#search').val('<?php
|
||||||
$langs->load('errors');
|
$langs->load('errors');
|
||||||
@ -538,6 +537,7 @@ function Search2(keyCodeForEnter) {
|
|||||||
?>');
|
?>');
|
||||||
$('#search').select();
|
$('#search').select();
|
||||||
}
|
}
|
||||||
|
else ClearSearch();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user