upd: reference-editor & template-editor

update to use new javascript modules
This commit is contained in:
2026-06-25 10:55:49 -04:00
parent 0a805b7ae7
commit 9a65e37def
2 changed files with 9 additions and 9 deletions
+8 -8
View File
@@ -2,17 +2,17 @@
<html>
<head>
<title>Reference Editor</title>
{{ importmap('app') }}
<script type='module'>
import {setHeight, setBooks, setEventListeners} from "{{ asset('js/home.js') }}";
import {retrieveReference, retrieveReferenceType, saveReference} from '{{ asset("js/reference.js") }}';
window.retrieveReference = retrieveReference;
window.retrieveReferenceType = retrieveReferenceType;
window.saveReference = saveReference;
import {setBooks, setEventListeners} from "{{ asset('js/home.js') }}";
import * as ref from "{{ asset('js/reference.js') }}";
window.ref = ref;
</script>
</head>
<body>
<select id='referenceTypes' onchange='retrieveReferenceType(this)'>
<select id='referenceTypes' onchange='ref.retrieveReferenceType(this)'>
<option value=''>-- Select Reference --</option>
<option value='new'>-- Insert New --</option>
<option value='creed'>Creed</option>
@@ -29,10 +29,10 @@
<option value='39a'>Thirty-Nine Articles</option>
<option value='lbc'>London Baptist Confession</option>
</select>&nbsp;&nbsp;
<select id='referenceSeries' onchange='retrieveReference(this)'>
<select id='referenceSeries' onchange='ref.retrieveReference(this)'>
</select>&nbsp;&nbsp;
<input type='text' name='name' id='refName' style='display:none;' />&nbsp;&nbsp;
<button id='save' name='save' onclick='saveReference()'>Save</button>
<button id='save' name='save' onclick='ref.saveReference()'>Save</button>
<a href='/home'>Back</a><br />
<textarea id='reference' name='reference' rows=45 cols=100></textarea>