mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
#13029 fix 500 agent view
This commit is contained in:
parent
d482425991
commit
bb7f359875
@ -4553,12 +4553,14 @@ function agents_get_starmap(
|
|||||||
var randomPoint = getRandomInteger(1, total_modules);
|
var randomPoint = getRandomInteger(1, total_modules);
|
||||||
let target = $(`#rect_${randomPoint}`);
|
let target = $(`#rect_${randomPoint}`);
|
||||||
let class_name = target.attr('class');
|
let class_name = target.attr('class');
|
||||||
class_name = class_name.split('_')[0];
|
if(target.length){
|
||||||
setTimeout(function() {
|
class_name = class_name.split('_')[0];
|
||||||
target.removeClass();
|
setTimeout(function() {
|
||||||
target.addClass(`${class_name}_${solid}`);
|
target.removeClass();
|
||||||
oneSquare(getRandomInteger(1, 10), getRandomInteger(100, 900));
|
target.addClass(`${class_name}_${solid}`);
|
||||||
}, time);
|
oneSquare(getRandomInteger(1, 10), getRandomInteger(100, 900));
|
||||||
|
}, time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let cont = 0;
|
let cont = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user