upd: reference-editor & template-editor
update to use new javascript modules
This commit is contained in:
@@ -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>
|
||||
<select id='referenceSeries' onchange='retrieveReference(this)'>
|
||||
<select id='referenceSeries' onchange='ref.retrieveReference(this)'>
|
||||
</select>
|
||||
<input type='text' name='name' id='refName' style='display:none;' />
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user