Add one graph to page even when no graphs specified in URL.

pull/57/head
Julius Volz 12 years ago
parent f47dfc458c
commit 893eebe77c

@ -327,6 +327,9 @@ function init() {
}); });
var options = parseGraphOptionsFromUrl(); var options = parseGraphOptionsFromUrl();
if (options.length == 0) {
options.push({});
}
for (var i = 0; i < options.length; i++) { for (var i = 0; i < options.length; i++) {
addGraph(options[i]); addGraph(options[i]);
} }

Loading…
Cancel
Save