diff --git a/Views/sidebar.php b/Views/sidebar.php
index 26a5db0..675439e 100644
--- a/Views/sidebar.php
+++ b/Views/sidebar.php
@@ -9,7 +9,7 @@
:
- :
+ :
diff --git a/embed.php b/embed.php
index f2222bc..e743c18 100644
--- a/embed.php
+++ b/embed.php
@@ -52,10 +52,10 @@
-
-
-
-
+
+
+
+
diff --git a/graph.js b/graph.js
index 566f25e..09e7466 100644
--- a/graph.js
+++ b/graph.js
@@ -414,7 +414,7 @@ function graph_init_editor()
$("body").on("click keyup",".tagheading",function(event){
let enterKey = 13;
- console.log(event.type,event.which);
+ // console.log(event.type,event.which);
if((event.type === 'keyup' && event.which === enterKey) || event.type === 'click') {
var tag = $(this).data("tag");
@@ -1269,6 +1269,8 @@ function histogram(feedid,type,resolution)
//----------------------------------------------------------------------------------------
$("#graph-select").change(function() {
var name = $(this).val();
+ var id = $(this).find(':selected').data('id');
+ $('#graph-id').text(id);
load_saved_graph(name);
});
@@ -1421,10 +1423,11 @@ function graph_load_savedgraphs(fn=false)
success: function(result) {
savedgraphs = result.user;
- var out = "";
+ var out = "";
for (var z in savedgraphs) {
- var name = savedgraphs[z].name;
- out += "";
+ var id = savedgraphs[z].id;
+ var name = savedgraphs[z].name;
+ out += '';
}
$("#graph-select").html(out);
if (fn) fn();
diff --git a/module.json b/module.json
index 14950e8..1dcebfb 100644
--- a/module.json
+++ b/module.json
@@ -1,4 +1,4 @@
{
"name" : "Graph",
- "version" : "2.0.0"
+ "version" : "2.0.1"
}