mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-27 16:14:39 -06:00
fix double category click
This commit is contained in:
parent
bc6fc0c08a
commit
ea91e6f059
@ -60,6 +60,7 @@ $(document).ready(function () {
|
||||
$('.cat-item-3').parent().css('display', 'flex');
|
||||
stop();
|
||||
} else {
|
||||
if (!$('li', catId).length) {
|
||||
response.forEach(function(options){
|
||||
$(catId).append("<li class='text-truncate pl-1 my-1' data-value="+options.id+">"+options.name+"</li>");
|
||||
});
|
||||
@ -68,6 +69,7 @@ $(document).ready(function () {
|
||||
$(catId).css({height: '14rem'});
|
||||
$(catId).closest('.cat-item-2').show().addClass('focus-select')
|
||||
}
|
||||
}
|
||||
// Auto scroll right
|
||||
let categoryTab = $('.category-tab');
|
||||
let pos = categoryTab.scrollLeft() + categoryTab.width();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user