add: new js files for simplicity
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { state } from "./state.js";
|
||||
|
||||
/**
|
||||
* Retrieves a template from the server and sets it as the value of a specified destination element.
|
||||
*
|
||||
@@ -24,6 +26,7 @@ export function retrieveTemplate(orig, dest) {
|
||||
.then(results => {
|
||||
const div = document.querySelector('#' + dest);
|
||||
div.value = results;
|
||||
state.textDirty = true;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user