@Volker, that is a great point; I was not aware of the discourse
environment, and will use that going forward.
@Bartosz: thanks for the answer. In retrospect, it was an obvious error on
my part.
On Mon, Apr 15, 2019 at 2:58 PM Volker E. <volker.e(a)wikimedia.org> wrote:
Hi Huji,
I hope you've found your questions clarified with above. While I appreciate
the continued efforts here on OOUI questions, I would like to propose
different channels for your future technical issues.
Wikimedia Foundation currently test-pilots “Wikimedia Developer Support”[0]
or alternatively a tag for any questions regarding the library on
StackOverflow [1]. Using those channels provide easier, long-term
search-ability for other folks running into the same issues and also keeps
the noise on a high-volume mailing list like wikitech-l for wide range of
subscribers low.
As with any urgent technical question on OOUI you could also seek help on
the IRC channel #wikimedia-editing.
Thanks and regards,
Volker
[0]:
https://discourse-mediawiki.wmflabs.org/
[1]:
https://stackoverflow.com/questions/tagged/oojs-ui
On Mon, Apr 15, 2019 at 11:14 AM Bartosz Dziewoński <matma.rex(a)gmail.com>
wrote:
Using jQuery methods like .remove() and .empty()
clears all event
handlers from the removed elements. That's why the buttons no longer
work after you remove them (using .empty()) and show them again.
To avoid this, you can use the .detach() method instead, or hide the
elements rather than remove them. For example, instead of:
dialog.panelBottom.$element.empty().append(dialog.buttonSelect[item.data.group].$element);
You can write:
dialog.panelBottom.$element.children().detach();
dialog.panelBottom.$element.append(dialog.buttonSelect[item.data.group].$element);
--
Bartosz Dziewoński
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l