Merge pull request #6 from n8k99/claude/claude-md-mhy85sj7tlvzwb5w-01QzBpdgGJXE5Qk3JaNupuxM

Claude/claude md mhy85sj7tlvzwb5w 01 qz bpdg gjxe5 qk3 ja nupux m
This commit is contained in:
Nathan Eckenrode 2025-11-13 23:07:26 -05:00 committed by GitHub
commit 68b572f33f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 11 deletions

View file

@ -486,9 +486,17 @@ function editBurg(id) {
}
function editBurgLegend() {
const id = elSelected.attr("data-id");
const name = elSelected.text();
editNotes("burg" + id, name);
const id = +elSelected.attr("data-id");
const burg = pack.burgs[id];
// Use Obsidian integration if available, otherwise fall back to old notes system
if (typeof editObsidianNote !== "undefined") {
const coordinates = {x: burg.x, y: burg.y};
editObsidianNote(id, "burg", coordinates);
} else {
const name = elSelected.text();
editNotes("burg" + id, name);
}
}
function showTemperatureGraph() {

View file

@ -221,7 +221,14 @@ function editMarker(markerI) {
function editMarkerLegend() {
const id = element.id;
editNotes(id, id);
// Use Obsidian integration if available, otherwise fall back to old notes system
if (typeof editObsidianNote !== "undefined" && marker) {
const coordinates = {x: marker.x, y: marker.y};
editObsidianNote(marker.i, "marker", coordinates);
} else {
editNotes(id, id);
}
}
function toggleMarkerLock() {