Mercurial > libervia-web
diff libervia/pages/_browser/invitation.py @ 1348:c74e5a488af6
browser (invitation): minor renaming
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 05 Sep 2020 21:59:14 +0200 |
parents | fe353fceec38 |
children | 2938d1b65bd5 |
line wrap: on
line diff
--- a/libervia/pages/_browser/invitation.py Sat Sep 05 21:59:11 2020 +0200 +++ b/libervia/pages/_browser/invitation.py Sat Sep 05 21:59:14 2020 +0200 @@ -66,7 +66,7 @@ self.side_panel.classList.remove('open') self.side_panel.bind("transitionend", self._on_close_transition_end) - def invite_jid(self, entity_jid): + def invite_by_jid(self, entity_jid): if self.invitation_type == 'photos': path = self.invitation_data["path"] service = self.invitation_data["service"] @@ -106,7 +106,7 @@ contact_elt = form_elt.select_one('input[name="contact"]') contact_elt.value = "" contact_elt.dispatchEvent(window.Event.new('input')) - self.invite_jid(entity_jid) + self.invite_by_jid(entity_jid) def on_contact_keydown(self, evt): if evt.key == "Escape": @@ -145,7 +145,7 @@ evt.preventDefault() if self._active_new_item is not None: entity_jid = self._active_new_item.dataset.entityJid - self.invite_jid(entity_jid) + self.invite_by_jid(entity_jid) def on_contact_focus(self, evt): search_dialog = document['invitation_contact_search']