Commit b9d6d532 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

select by color adjustment

parent 1a8e1ac4
......@@ -611,6 +611,8 @@ function update_legend(title, threshes){
$("#legend").html(html);
$("#farge0").click( function () {
// only_links_by_color(empty_color);
if ( links_on ){
hide_links_by_color(empty_color);
links_on=false;
......@@ -623,6 +625,7 @@ function update_legend(title, threshes){
var id="legend"+i;
$("#legend" + i).click( function(e){
only_links_by_color(this.attributes.bgcolor.value);
//hide_links_by_color(this.attributes.bgcolor.value);
});
$("#legend" + i).css( "background-color", colors[i] );
color_on[colors[i]]=false;
......@@ -1002,7 +1005,7 @@ function get_topology(){
var start = new Date($("#datepicker").val() + " 00:00:00").getTime()/1000;
var end= new Date($("#datepicker").val() + " 23:59:59").getTime()/1000;
var network=parms.net;
var url="/microdep/microdep-config.cgi?variant=mp-" + network + "&start=" + start + "&end=" + end;
var url="microdep-config.cgi?variant=mp-" + network + "&start=" + start + "&end=" + end;
$.getJSON( url,
function(topology){
draw_topology( topology );
......@@ -1252,7 +1255,7 @@ function draw_link( ends, color, tooltip, popup){
function load_coords(network, service, goal){
//$.getJSON("https://kind.uninett.no/api/ansible_inventory.json?tjenester="+service,
var url= "/microdep/" + network + "-" + service + "-geo.json";
var url= "" + network + "-" + service + "-geo.json";
$.getJSON( url,
function(tjenester){
if ( "_meta" in tjenester ){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment