mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 15:05:26 +02:00
add confirmation
This commit is contained in:
parent
f7cb2406d7
commit
d6209f8578
3 changed files with 7 additions and 4 deletions
2
public/dist/main.bundle.js
vendored
2
public/dist/main.bundle.js
vendored
File diff suppressed because one or more lines are too long
|
@ -64,6 +64,11 @@ export default class Writing {
|
|||
|
||||
if (this.nodes.removeButton) {
|
||||
this.nodes.removeButton.addEventListener('click', () => {
|
||||
const isUserAgree = confirm("Are you sure?");
|
||||
if (!isUserAgree) {
|
||||
return
|
||||
}
|
||||
|
||||
this.removeButtonClicked();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -53,9 +53,7 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
{% if page is not empty %}
|
||||
<main>
|
||||
<input type="text" class="uri-input" name="uri-input" placeholder="Uri(Optional)" value="{{ page.uri }}">
|
||||
</main>
|
||||
<p><input type="text" class="uri-input" name="uri-input" placeholder="Uri(Optional)" value="{{ page.uri }}"></p>
|
||||
{% endif %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue