diff --git a/save-html.c b/save-html.c index 710569dee..75f7542eb 100644 --- a/save-html.c +++ b/save-html.c @@ -36,6 +36,7 @@ void put_HTML_bookmarks(struct membuffer *b, struct dive *dive) put_string(b, "\"events\":["); while (ev) { put_format(b, "{\"name\":\"%s\",", ev->name); + put_format(b, "\"value\":\"%d\",", ev->value); put_format(b, "\"time\":\"%d\",},", ev->time.seconds); ev = ev->next; } diff --git a/theme/list_lib.js b/theme/list_lib.js index 1d0cd9076..0da11089b 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -747,7 +747,7 @@ Return the HTML string for a bookmark entry in the table. */ function get_bookmark_HTML(event) { - return '' + event.name + '' + int_to_time(event.time) + ''; + return '' + event.name + '' + int_to_time(event.time) + '' + event.value + ''; } /** @@ -758,7 +758,7 @@ function get_bookmarks_HTML(dive) if (dive.events <= 0) return ""; var result = ""; - result += '

Events

'; + result += '

Events

NameTime
'; for (var i in dive.events) { result += get_bookmark_HTML(dive.events[i]); }
NameTimeValue