mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
updated notification javascript guidelines
This commit is contained in:
parent
ee3dc52cd0
commit
dc2f9bb5f3
@ -55,7 +55,7 @@ meta:
|
|||||||
{% capture notification_js_code %}
|
{% capture notification_js_code %}
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
|
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
|
||||||
$notification = $delete.parentNode;
|
var $notification = $delete.parentNode;
|
||||||
|
|
||||||
$delete.addEventListener('click', () => {
|
$delete.addEventListener('click', () => {
|
||||||
$notification.parentNode.removeChild($notification);
|
$notification.parentNode.removeChild($notification);
|
||||||
|
Loading…
Reference in New Issue
Block a user