Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jurriaan committed Jun 8, 2024
1 parent 9ff4880 commit 86ed15e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion static/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ body {
}

#sidebar.collapsed>button.show {
display:/pa block;
display: block;
left: 0;
top: 0;
pointer-events: all;
Expand Down
8 changes: 3 additions & 5 deletions static/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ function loadMap() {
// Automatically create a line from point data
map.on("sourcedata", async (e) => {
if (e.sourceId == 'positions' && e.sourceDataType == 'metadata' && typeof e.source.data == 'string') {
console.log(e);
console.log(map.isSourceLoaded('positions'));
const positionsSource = map.getSource('positions');
const positionsLineSource = map.getSource('positions-line');
if (positionsSource) {
Expand Down Expand Up @@ -487,11 +485,11 @@ function applyNodeNames(node) {
const nodeNamesToFetch = htmx.findAll(node, '.node-name.fetch');
nodeNamesToFetch.forEach((nameToFetch) => {
const selector = `#node-list-node-${nameToFetch.dataset.nodeId} .node-name`
console.log(selector);
const nodeNameNode = htmx.find(nodeList, selector);
console.log(nodeNameNode);

nameToFetch.innerHTML = nodeNameNode.innerHTML;
if(nodeNameNode) {
nameToFetch.innerHTML = nodeNameNode.innerHTML;
}
});
}

Expand Down

0 comments on commit 86ed15e

Please sign in to comment.