diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d539247553..e0626c1a33 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-03-01 Miguel de Dios + + * godmode/gis_maps/configure_gis_map.php: fix in javascript function + "setFieldsFormLayer" set the checkbox. + 2010-03-01 Miguel de Dios * include/functions_gis.php: in fuction "getAgentsLayer" fix when none data diff --git a/pandora_console/godmode/gis_maps/configure_gis_map.php b/pandora_console/godmode/gis_maps/configure_gis_map.php index e364eca682..b2c6fbc5b2 100644 --- a/pandora_console/godmode/gis_maps/configure_gis_map.php +++ b/pandora_console/godmode/gis_maps/configure_gis_map.php @@ -557,7 +557,12 @@ function setFieldsFormLayer(layer_name,layer_group, layer_visible_form, agent_li $("#text-layer_name_form").val(layer_name); $("#layer_group_form [value="+layer_group+"]").attr("selected",true); $("#text_id_agent").val(''); - $("#checkbox-layer_visible_form").attr("checked", layer_visible_form); + if (layer_visible_form == '0') { + $("#checkbox-layer_visible_form").removeAttr("checked"); + } + else { + $("#checkbox-layer_visible_form").attr("checked", 'checked'); + } $("#list_agents").empty(); //Clean list agents loadAgents(agent_list);