Skip to content

Node.js based forum software built for the modern web

moved documentation out of alerts

psychobunnyf7fe0aa680cb
diff --git a/public/src/modules/alerts.js b/public/src/modules/alerts.js
index 3b103a1f18..5f2518b8ce 100644
--- a/public/src/modules/alerts.js
+++ b/public/src/modules/alerts.js
@@ -5,9 +5,6 @@ define(function() {
var module = {};
- // use unique alert_id to have multiple alerts visible at a time, use the same alert_id to fade out the current instance
- // type : error, success, info, warning/notify
- // timeout default = permanent
module.alert = function (params) {
params.alert_id = 'alert_button_' + (params.alert_id ? params.alert_id : new Date().getTime());
params.title = params.title || '';
@@ -22,9 +19,7 @@ define(function() {
};
function createNew(params) {
-
templates.parse('alert', params, function(alertTpl) {
-
translator.translate(alertTpl, function(translatedHTML) {
var alert = $(translatedHTML);
alert.fadeIn(200);