[extensions-web: 18/75] Allow DOM nodes as messages.



commit b6474273223ac35f8a034c42e2012ab4d6a7c901
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Sep 14 09:35:48 2011 -0400

    Allow DOM nodes as messages.

 sweettooth/static/js/messages.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/messages.js b/sweettooth/static/js/messages.js
index d7da393..69444f2 100644
--- a/sweettooth/static/js/messages.js
+++ b/sweettooth/static/js/messages.js
@@ -3,7 +3,7 @@
 define(['jquery'], function($) {
     function addMessage(tag, message) {
         return $('<p>').addClass('message').addClass(tag)
-            .text(message).appendTo($('#message_container'));
+            .append(message).appendTo($('#message_container'));
     }
 
     function addInfo(message) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]