Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -772,7 +772,7 @@ |
773 | 773 | * Add a cute little box at the top of the screen to inform the user of |
774 | 774 | * something, replacing any preexisting message. |
775 | 775 | * |
776 | | - * @param String message HTML to be put inside the right div |
| 776 | + * @param String -or- Dom Object message HTML to be put inside the right div |
777 | 777 | * @param String className Used in adding a class; should be different for each |
778 | 778 | * call to allow CSS/JS to hide different boxes. null = no class used. |
779 | 779 | * @return Boolean True on success, false on failure |
— | — | @@ -811,6 +811,15 @@ |
812 | 812 | messageDiv.setAttribute( 'class', 'mw-js-message-'+className ); |
813 | 813 | } |
814 | 814 | messageDiv.innerHTML = message; |
| 815 | + |
| 816 | + if (typeof message == 'string') { |
| 817 | + messageDiv.innerHTML = message; |
| 818 | + } |
| 819 | + else if (typeof message == 'object') { |
| 820 | + while (messageDiv.hasChildNodes()) // Remove old content |
| 821 | + messageDiv.removeChild(messageDiv.firstChild); |
| 822 | + messageDiv.appendChild (message); // Append new content |
| 823 | + } |
815 | 824 | return true; |
816 | 825 | } |
817 | 826 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -154,6 +154,7 @@ |
155 | 155 | * Add a new hook LinkerMakeExternalLink to allow extensions to modify the output of |
156 | 156 | external links. |
157 | 157 | * (bug 14132) Allow user to disable bot edits from being output to UDP. |
| 158 | +* (bug 14328) jsMsg() within Wikibits now accepts a DOM object, not just a string |
158 | 159 | |
159 | 160 | === Bug fixes in 1.13 === |
160 | 161 | |