Merge branch 'ent-13029-guardia-17751-vista-de-agente-rota' into 'develop'

Ent 13029 guardia 17751 vista de agente rota

See merge request artica/pandorafms!7002
This commit is contained in:
Rafael Ameijeiras 2024-03-12 09:31:01 +00:00
commit 68e4f4e735
1 changed files with 8 additions and 6 deletions

View File

@ -4553,12 +4553,14 @@ function agents_get_starmap(
var randomPoint = getRandomInteger(1, total_modules);
let target = $(`#rect_${randomPoint}`);
let class_name = target.attr('class');
class_name = class_name.split('_')[0];
setTimeout(function() {
target.removeClass();
target.addClass(`${class_name}_${solid}`);
oneSquare(getRandomInteger(1, 10), getRandomInteger(100, 900));
}, time);
if(target.length){
class_name = class_name.split('_')[0];
setTimeout(function() {
target.removeClass();
target.addClass(`${class_name}_${solid}`);
oneSquare(getRandomInteger(1, 10), getRandomInteger(100, 900));
}, time);
}
}
let cont = 0;