Mercurial > libervia-web
diff libervia/pages/photos/_browser/__init__.py @ 1357:dbd573b0bc9c
browser: updated code to work with new Brython 3.8.10:
/!\ Brython 3.8.10 is now the minimal version
Removed `.js.` and `.elt.` attributes which are not working and needed anymore.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 17 Sep 2020 22:46:55 +0200 |
parents | ff44f822bfdd |
children | 106bae41f5c8 |
line wrap: on
line diff
--- a/libervia/pages/photos/_browser/__init__.py Thu Sep 17 16:44:54 2020 +0200 +++ b/libervia/pages/photos/_browser/__init__.py Thu Sep 17 22:46:55 2020 +0200 @@ -49,7 +49,7 @@ def on_delete(evt): evt.stopPropagation() target = evt.currentTarget - item_elt = DOMNode(target.elt.closest('.item')) + item_elt = DOMNode(target.closest('.item')) item_elt.classList.add("selected_for_deletion") item = JSON.parse(item_elt.dataset.item) dialog.Confirm(