fix log UI cache clearing+

montage-api
Moe 2021-12-04 19:49:39 -08:00
parent 6b3804a5b4
commit 0767312719
1 changed files with 3 additions and 2 deletions

View File

@ -723,8 +723,9 @@ function logWriterDraw(id,data){
})
$(elementTags).prepend(html).each(function(n,v){
var el = $(v);
if(el.find('.log-item').length > 10){
v.find('.log-item:last').remove()
var theRows = el.find('.log-item')
if(theRows.length > 10){
theRows.last().remove()
}
})
}