Working close button
This commit is contained in:
parent
6d1651f3ec
commit
57f6a4e701
@ -67,8 +67,8 @@
|
|||||||
<input placeholder="secret name" id="new-secret-name" name="name">
|
<input placeholder="secret name" id="new-secret-name" name="name">
|
||||||
<input placeholder="secret value" type="password" id="new-secret-password" name="value">
|
<input placeholder="secret value" type="password" id="new-secret-password" name="value">
|
||||||
<button type="submit" hx-on:htmx:after-request="update_secrets(); hide_new_secret()">CREATE</button>
|
<button type="submit" hx-on:htmx:after-request="update_secrets(); hide_new_secret()">CREATE</button>
|
||||||
<button onclick="hide_new_secret()">CANCEL</button>
|
|
||||||
</form>
|
</form>
|
||||||
|
<button onclick="hide_new_secret(); close()">CLOSE</button>
|
||||||
</dialog>
|
</dialog>
|
||||||
<script>
|
<script>
|
||||||
update_secrets = function() {
|
update_secrets = function() {
|
||||||
@ -84,7 +84,7 @@
|
|||||||
document.getElementById('new-secret-funko').value=""
|
document.getElementById('new-secret-funko').value=""
|
||||||
document.getElementById('add-secret').value=""
|
document.getElementById('add-secret').value=""
|
||||||
document.getElementById('add-secret').value=""
|
document.getElementById('add-secret').value=""
|
||||||
document.getElementById('add-secret').hide()
|
document.getElementById('add-secret').close()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
Reference in New Issue
Block a user