I didn't like jsMessage's behaviour of mw.util.jsMessage( 'Foo' ); treating 'Foo' as html, so any string you pass will be treated as plaintext. But it does accept arbitrary DOM nodes and jQuery objects just like jsMessage did. And as a bonus it will also accept a mw.message instance and automatically call .parse() on it to get the html. If you have a raw html string just use jQuery's $.parseHTML.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] On 12-08-16 3:01 AM, Andrew Garrett wrote: > This looks like it would work brilliantly for Echo real time > notifications. Does it accept arbitrary HTML as a payload? > > On Mon, Aug 13, 2012 at 6:18 PM, Daniel Friesen > <[email protected] <mailto:[email protected]>> wrote: > > A little while ago Trevor Parscal changed our jsMessage setup to > be a floating auto-hiding notification bubble. > https://gerrit.wikimedia.org/r/#/c/17605/ > > The end implementation felt half-baked to me. Since it just > swapped text for notification replacement. And didn't support > multiple notifications. It even reused the same id as the previous > message which was pretty much a completely different concept. > > So I spent a night implementing a fully featured notification > bubble system. Something that should work for watchlists, > VisualEditor, and perhaps some other things like LQT, and perhaps > anything we want to start making more dynamic. Same goes for > anyone with a good Gadget idea that could use better notifications. > > Here's a demo video of the new notification system: > https://www.mediawiki.org/wiki/File:Mw-notification.ogv > > > The changeset is https://gerrit.wikimedia.org/r/#/c/19199/ > > -- > ~Daniel Friesen (Dantman, Nadir-Seen-Fire) > [http://daniel.friesen.name] > > _______________________________________________ > Wikitech-l mailing list > [email protected] <mailto:[email protected]> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > > -- > Andrew Garrett > Wikimedia Foundation > [email protected] <mailto:[email protected]> _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
