fixed alert-notify (and blanks) to alert-warning

This commit is contained in:
psychobunny
2013-08-27 05:16:49 +08:00
parent 33a69abece
commit cc6e028b1d
4 changed files with 15 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ var socket,
alert_id: 'connection_alert',
title: 'Reconnecting',
message: 'You have disconnected from NodeBB, we will try to reconnect you. <br/><i class="icon-refresh icon-spin"></i>',
type: 'notify',
type: 'warning',
timeout: 5000
});
});
@@ -161,7 +161,7 @@ var socket,
if(alert.length > 0) {
alert.find('strong').html(params.title);
alert.find('p').html(params.message);
alert.attr('class', "alert toaster-alert " + ((params.type=='warning') ? '' : "alert-" + params.type));
alert.attr('class', "alert toaster-alert " + "alert-" + params.type);
clearTimeout(alert.attr('timeoutId'));
startTimeout(alert, params.timeout);
@@ -175,7 +175,7 @@ var socket,
p.innerHTML = params.message;
strong.innerHTML = params.title;
div.className = "alert toaster-alert " + ((params.type=='warning') ? '' : "alert-" + params.type);
div.className = "alert toaster-alert " + "alert-" + params.type;
div.setAttribute('id', alert_id);
div.appendChild(button);