Last modified: 2014-11-17 10:35:57 UTC
jsMessage needs two additional things: - string 'component' (default: 'default') – can succeed the existing 'className' argument. - bool 'replace' (defaul: true) This enables different scripts to shoot out messages without it being overwritten by a totally unrelated script. The default behaviour won't change. Setting replace to false will add it on top with a line below (instead of replacing the entire #mw-js-message division. If the same component later receives a 'replace: true' it removes all previous messages from that component and puts the new one on top. Assigning to myself, hoping to implement it soonish.
Implemented (Gerrit change #37897). If this is what you had in mind, let me know and I'll add tests.
Sorry, that's Gerrit change #12838.
I am an idiot: make that Gerrit change #13366. Stepping away from the keyboard now..
Major improvements to jsMessage: * Redesign of visual look: I41c70d78c8ed8aeb91a598dc4a7b26dfad8d8f6c * Refactor of framework code (mw.notification): I2b3d9cbce6d1514d754b4403ec878d89ea6af29d