New networkmaps in progress... (Added new icons to hide and show labels)
This commit is contained in:
parent
69e5c12cfe
commit
69ccfa2d65
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 936 B |
|
@ -1257,7 +1257,7 @@ function show_networkmap($id = 0, $user_readonly = false, $nodes_and_relations =
|
||||||
|
|
||||||
echo '<div id="hide_labels_' . $networkmap['id'] . '" style="position: absolute; right: 10px; top: 10px;">
|
echo '<div id="hide_labels_' . $networkmap['id'] . '" style="position: absolute; right: 10px; top: 10px;">
|
||||||
<a title="' . __('Hide Labels') . '" href="javascript: hide_labels();">
|
<a title="' . __('Hide Labels') . '" href="javascript: hide_labels();">
|
||||||
<img id="image_hide_show_labels" src="images/icono_delete_networkmaps.png" />
|
<img id="image_hide_show_labels" src="images/icono_borrar.png" />
|
||||||
</a>
|
</a>
|
||||||
</div>';
|
</div>';
|
||||||
|
|
||||||
|
|
|
@ -1040,8 +1040,8 @@ function hide_labels_function() {
|
||||||
|
|
||||||
//Change the image arrow
|
//Change the image arrow
|
||||||
$("#hide_labels_" + networkmap_id + " > a").attr("title", "Show Labels");
|
$("#hide_labels_" + networkmap_id + " > a").attr("title", "Show Labels");
|
||||||
$("#image_hide_show_labels" + networkmap_id).attr("src", "images/icono_refresh_networkmaps.png");
|
$("#hide_labels_" + networkmap_id + " > a > img").attr("src", "images/icono_pintar.png");
|
||||||
|
|
||||||
d3.selectAll(".node_text").style("display", "none");
|
d3.selectAll(".node_text").style("display", "none");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1050,7 +1050,7 @@ function show_labels_function() {
|
||||||
|
|
||||||
//Change the image arrow
|
//Change the image arrow
|
||||||
$("#hide_labels_" + networkmap_id + " > a").attr("title", "Hide Labels");
|
$("#hide_labels_" + networkmap_id + " > a").attr("title", "Hide Labels");
|
||||||
$("#image_hide_show_labels" + networkmap_id).attr("src", "images/icono_delete_networkmaps.png");
|
$("#hide_labels_" + networkmap_id + " > a > img").attr("src", "images/icono_borrar.png");
|
||||||
|
|
||||||
d3.selectAll(".node_text").style("display", "");
|
d3.selectAll(".node_text").style("display", "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue