diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-10-26 07:26:18 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-10-26 07:26:18 +0400 |
commit | 22208990a2dbc04fc488ffc9d9dfc3b9ee50e8d8 (patch) | |
tree | 4d5dc42e2c585dc929d8ac0166fbf68ae4e5fba5 /plugins/CoreHome/javascripts/notification.js | |
parent | c7ffd570d27267d6037ee770a18da32334dd52c3 (diff) |
refs #4179 render a simple dom node for each notification
Diffstat (limited to 'plugins/CoreHome/javascripts/notification.js')
-rw-r--r-- | plugins/CoreHome/javascripts/notification.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/CoreHome/javascripts/notification.js b/plugins/CoreHome/javascripts/notification.js index d5b9a843d3..228da2612b 100644 --- a/plugins/CoreHome/javascripts/notification.js +++ b/plugins/CoreHome/javascripts/notification.js @@ -12,8 +12,9 @@ var Notification = function () { }; - Notification.notify = function (title, message, options) { - // render dom node + Notification.prototype.notify = function (title, message, options) { + var template = '<div class="alert alert-' + options.context + ' ">' + options.type + '</div>'; + $(template).appendTo('#notificationContainer'); }; exports.Notification = Notification; |