Changeset 9bac9ef78989b8afdc9ffdccd996e4cfeab65643 for ui/web
- Timestamp:
- 12/01/08 21:06:14 (5 years ago)
- git-parent:
- Files:
-
- ui/web/htdocs/graph_panel.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ui/web/htdocs/graph_panel.inc
re13f962 r9bac9ef 14 14 15 15 function set_current_graph_id(id) { 16 if(id!='') graphinfo.saved = true; 16 17 current_graph_id = id; 17 18 fetch_graph_info(current_graph_id); … … 28 29 graphinfo.id = d.id; 29 30 if(d.error) $("#gtool-error").html(d.error).fadeIn('fast'); 30 else $("#gtool-error").fadeOut('fast'); 31 else $("#gtool-error").fadeOut('fast'); 31 32 if(graphinfo.id && graphinfo.saved != true && 32 33 $(".rememberGraph:visible").length == 0) { 34 graphinfo.saved=false; 33 35 $(".rememberGraph").html('"Remember" this graph.').fadeIn('slow'); 34 36 $(".rememberGraph").click(function() { … … 192 194 else refresh_graph_from_json({}); 193 195 $("span.blankGraph").click(function() { 194 if(graphinfo.saved || confirm("I will forget the current graph. Are you sure?")) 195 set_current_graph_id(''); 196 if(graphinfo.saved) set_current_graph_id(''); 197 else if(graphinfo.saved!=undefined && graphinfo.saved==false) { 198 confirm("I will forget the current graph. Are you sure?", function() { 199 set_current_graph_id(''); 200 }); 201 } 196 202 return false; 197 203 });
