Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-10-26 07:26:18 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-10-26 07:26:18 +0400
commit22208990a2dbc04fc488ffc9d9dfc3b9ee50e8d8 (patch)
tree4d5dc42e2c585dc929d8ac0166fbf68ae4e5fba5 /plugins/CoreHome/javascripts/notification.js
parentc7ffd570d27267d6037ee770a18da32334dd52c3 (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.js5
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;