Skip to content

Commit

Permalink
Reorder some JS stuff to fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Jan 3, 2025
1 parent eac26ae commit ca5a186
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions modules/frontend/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@
<script src="external/graph/dagre.min.js"></script>
<script src="external/graph/cytoscape-dagre.js"></script>


<script src="anonymizer.js"></script>

<script src="extrafuncs.js"></script>
<script src="graph.js"></script>
<script src="preferences.js"></script> <!-- last to ensure prefs loading triggering changes are detected -->

<script src="themes.js"></script> <!-- depends on cy veriable in graph.js, sic -->
<script src="custom.js"></script>

<script src="preferences.js"></script> <!-- last to ensure prefs loading triggering changes are detected -->

{{range .AdditionalHeaders}} {{.}} {{end}}
</head>
Expand Down
4 changes: 2 additions & 2 deletions modules/frontend/html/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function setpref(key, value) {
});
}

$(function () {
function prefsinit() {
// Load preferences
loadprefs();

Expand All @@ -98,4 +98,4 @@ $(function () {
$('[preference]').change(function () {
onchangepreference($(this));
});
});
};

0 comments on commit ca5a186

Please sign in to comment.