New networkmaps in progress... (Added new icons to hide and show labels)

This commit is contained in:
Arturo Gonzalez 2016-10-17 11:22:27 +02:00
parent 69e5c12cfe
commit 69ccfa2d65
4 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

View File

@ -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;">
<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>
</div>';

View File

@ -1040,8 +1040,8 @@ function hide_labels_function() {
//Change the image arrow
$("#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");
}
@ -1050,7 +1050,7 @@ function show_labels_function() {
//Change the image arrow
$("#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", "");
}