mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-3802-visual-constole-warning-state-bug' into 'develop'
Fixed select bug not selectig value See merge request artica/pandorafms!2346
This commit is contained in:
commit
f13162abf1
@ -4094,10 +4094,8 @@ function visual_map_get_layout_status($layout_id, $status_data=[], $depth=0)
|
|||||||
);
|
);
|
||||||
} else if (!empty($layout_item_data['id_agent'])) {
|
} else if (!empty($layout_item_data['id_agent'])) {
|
||||||
// Agent.
|
// Agent.
|
||||||
$agent_status = agents_get_status(
|
$agent = db_get_row('tagente', 'id_agente', $layout_item_data['id_agent']);
|
||||||
$layout_item_data['id_agent'],
|
$agent_status = agents_get_status_from_counts($agent);
|
||||||
true
|
|
||||||
);
|
|
||||||
$status = visual_map_translate_agent_status(
|
$status = visual_map_translate_agent_status(
|
||||||
$agent_status
|
$agent_status
|
||||||
);
|
);
|
||||||
|
@ -1394,6 +1394,9 @@ function visual_map_editor_print_hack_translate_strings()
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
$("#map_linked").change(function () {
|
$("#map_linked").change(function () {
|
||||||
|
$("option[value=" + this.value + "]", this)
|
||||||
|
.attr("selected", true).siblings()
|
||||||
|
.removeAttr("selected")
|
||||||
$("#text-agent").val("");
|
$("#text-agent").val("");
|
||||||
$("input[name=id_agent]").val(0);
|
$("input[name=id_agent]").val(0);
|
||||||
$("#module").empty();
|
$("#module").empty();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user