better id name

This commit is contained in:
Oliver Gorwits
2017-12-31 12:34:58 +00:00
parent e9077fcfd4
commit 543bd5f0fa
2 changed files with 5 additions and 5 deletions

View File

@@ -467,7 +467,7 @@ td > form.nd_inline-form {
} }
/* netmap maximise icon */ /* netmap maximise icon */
#nd2_fullscreen-netmap { #nd2_netmap-fullscreen {
fill: black; fill: black;
font-size: 15px; font-size: 15px;
} }

View File

@@ -49,10 +49,10 @@ $.getJSON('[% uri_for('/ajax/data/device/netmap') %]?[% my_query %]', function(m
graph.inspect().dom.svg graph.inspect().dom.svg
.append("g") .append("g")
.attr("id", "nd2_fullscreen-netmap-container") .attr("id", "nd2_netmap-fullscreen-container")
.attr("transform", "translate(" + (graph.width() - 17) + ",17)") .attr("transform", "translate(" + (graph.width() - 17) + ",17)")
.append("svg:text") .append("svg:text")
.attr("id", "nd2_fullscreen-netmap") .attr("id", "nd2_netmap-fullscreen")
.attr("class", "link") .attr("class", "link")
.attr("text-anchor", "start") .attr("text-anchor", "start")
.attr("font-family", "FontAwesome") .attr("font-family", "FontAwesome")
@@ -260,7 +260,7 @@ function requestFullScreen(elt) {
$(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange', function() { $(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange', function() {
resizeGraphContainer(); resizeGraphContainer();
$('#nd2_fullscreen-netmap').text(function() { $('#nd2_netmap-fullscreen').text(function() {
return (isFullScreen() ? '\uf066' : '\uf065'); return (isFullScreen() ? '\uf066' : '\uf065');
}); });
}); });
@@ -274,7 +274,7 @@ function resizeGraphContainer() {
graph.height( window.innerHeight - 100 ).resume(); graph.height( window.innerHeight - 100 ).resume();
d3.select("#nd2_netmap-spinner-container").attr("transform", d3.select("#nd2_netmap-spinner-container").attr("transform",
"translate(" + (graph.width() - 15) + "," + (graph.height() - 15) + ")"); "translate(" + (graph.width() - 15) + "," + (graph.height() - 15) + ")");
d3.select("#nd2_fullscreen-netmap-container").attr("transform", d3.select("#nd2_netmap-fullscreen-container").attr("transform",
"translate(" + (graph.width() - 17) + ",17)"); "translate(" + (graph.width() - 17) + ",17)");
}, 500) }, 500)
} }