IW4M-Admin/WebfrontCore/wwwroot/js/search.js
RaidMax d1283b96a1 fixed GetHashCode
fixed TopStats
restrict search to minimum 3 characters
2018-04-10 01:38:18 -05:00

22 lines
742 B
JavaScript

$(document).ready(function() {
$('.form-inline').submit(function(e) {
if ($('#client_search').val().length < 3) {
e.preventDefault();
$('#client_search')
.addClass('input-text-danger')
.delay(25)
.queue(function(){
$(this).addClass('input-border-transition').dequeue();
})
.delay(1000)
.queue(function() {
$(this).removeClass('input-text-danger').dequeue();
})
.delay(500)
.queue(function() {
$(this).removeClass('input-border-transition').dequeue();
});
}
});
});