Merge pull request #546 from openclassify/dia

#1421 Ad post cat select problem
This commit is contained in:
Fatih Alp 2020-05-08 22:12:08 +03:00 committed by GitHub
commit 59e5b61fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,8 @@ $(document).ready(function () {
$(catId).append("<option class='text-truncate pl-1 my-1' value="+options.id+">"+options.name+"</option>");
});
$('.focus-select').removeClass('focus-select');
$(catId).animate({height: '14rem'}, 200);
// $(catId).animate({height: '14rem'}, 200);
$(catId).css({height: '14rem'});
$(catId).closest('.cat-item-2').show().addClass('focus-select')
}
// Auto scroll right
@ -68,9 +69,10 @@ $(document).ready(function () {
var endNo = 9;
while (startNo <= endNo) {
$('#cat'+ startNo).animate({height: 0}, 200, 'linear', function () {
$(this).html("").closest('.cat-item-2').hide();
});
// $('#cat'+ startNo).animate({height: 0}, 200, 'linear', function () {
// $(this).html("").closest('.cat-item-2').hide();
// });
$('#cat'+ startNo).html("").closest('.cat-item-2').hide();
$('.cat-item-3').parent().hide();
startNo++;
}