- :
+ :
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();