This commit is contained in:
DL6ER
2017-02-19 14:58:20 +01:00
parent 1975c261d0
commit 91c563692e
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -107,9 +107,13 @@ function updateQueryTypes() {
var v = [], c = [], k = [];
// Collect values and colors, and labels
if(data.hasOwnProperty("querytypes"))
{
iter = data.querytypes;
}
else
{
iter = data;
}
$.each(iter, function(key , value) {
v.push(value);
c.push(colors.shift());
@@ -190,9 +194,13 @@ function updateForwardDestinations() {
var v = [], c = [], k = [], iter;
// Collect values and colors, immediately push individual labels
if(data.hasOwnProperty("forward_destinations"))
{
iter = data.forward_destinations;
}
else
{
iter = data;
}
$.each(iter, function(key , value) {
v.push(value);
c.push(colors.shift());
+1 -1
View File
@@ -89,7 +89,7 @@ function handleAjaxError( xhr, textStatus, error ) {
}
else
{
alert( "An unknown error occured while loading the data." );
alert( "An unknown error occured while loading the data.\n"+xhr.responseText );
}
$("#all-queries_processing").hide();
tableApi.clear();