fix bug on making posts
parent
07cfaa22d0
commit
e536210bfc
|
@ -1,3 +1,5 @@
|
||||||
|
const submitButton = document.getElementById('submit-btn')
|
||||||
|
|
||||||
const save_value = ['post-title', 'post-text', 'post-url', 'sub']
|
const save_value = ['post-title', 'post-text', 'post-url', 'sub']
|
||||||
for (const id of save_value) {
|
for (const id of save_value) {
|
||||||
const value = localStorage.getItem(id)
|
const value = localStorage.getItem(id)
|
||||||
|
@ -31,9 +33,6 @@ function savetext() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const submitButton = document.getElementById('submit-btn')
|
|
||||||
|
|
||||||
function checkForRequired() {
|
function checkForRequired() {
|
||||||
const title = document.getElementById("post-title");
|
const title = document.getElementById("post-title");
|
||||||
const url = document.getElementById("post-url");
|
const url = document.getElementById("post-url");
|
||||||
|
|
Loading…
Reference in New Issue