updated all alert-error to alert-danger (wtf did BS3 need to change that?)

v1.18.x
psychobunny 12 years ago
parent b6a5cbf956
commit 0f8aad52b2

@ -211,7 +211,7 @@ var socket,
app.alert({
title: 'Error',
message: message,
type: 'error',
type: 'danger',
timeout: timeout
});
}

@ -111,7 +111,7 @@ var nodebb_admin = (function(nodebb_admin) {
timeout: 2500,
title: 'Changes Not Saved',
message: 'NodeBB encountered a problem saving your changes',
type: 'error'
type: 'danger'
});
}
});

@ -124,7 +124,7 @@
} else {
app.alert({
'alert_id': 'thread_move',
type: 'error',
type: 'danger',
title: 'Unable to Move Topic',
message: 'This topic could not be moved to ' + targetCatLabel + '.<br />Please try again later',
timeout: 5000
@ -183,7 +183,7 @@
if (data.status && data.status === 'ok') set_follow_state(data.follow);
else {
app.alert({
type: 'error',
type: 'danger',
alert_id: 'topic_follow',
title: 'Please Log In',
message: 'Please register or log in in order to subscribe to this topic',

@ -157,7 +157,7 @@ define(['taskbar'], function(taskbar) {
composer.load(uuid);
} else {
app.alert({
type: 'error',
type: 'danger',
timeout: 5000,
alert_id: 'post_error',
title: 'Please Log In to Post',
@ -336,7 +336,7 @@ define(['taskbar'], function(taskbar) {
if (titleEl.value.length < config.minimumTitleLength) {
return app.alert({
type: 'error',
type: 'danger',
timeout: 2000,
title: 'Title too short',
message: "Please enter a longer title. At least " + config.minimumTitleLength+ " characters.",
@ -346,7 +346,7 @@ define(['taskbar'], function(taskbar) {
if (bodyEl.value.length < config.minimumPostLength) {
return app.alert({
type: 'error',
type: 'danger',
timeout: 2000,
title: 'Content too short',
message: "Please enter a longer post. At least " + config.minimumPostLength + " characters.",

@ -9,7 +9,7 @@
// ajaxify.go('install/redis');
// app.alert({
// alert_id: 'config-ready',
// type: 'error',
// type: 'danger',
// timeout: 10000,
// title: 'NodeBB Configuration Not Ready!',
// message: 'NodeBB cannot proceed with setup at this time as Redis database information ' +
@ -134,7 +134,7 @@
timeout: 2500,
title: 'Configuration Not Saved',
message: 'NodeBB encountered a problem saving your changes',
type: 'error'
type: 'danger'
});
}
});

@ -10,7 +10,7 @@ var RDB = require('./redis.js'),
alert_id: 'post_favourite',
title: 'Not Logged In',
message: 'Please log in in order to favourite this post',
type: 'error',
type: 'danger',
timeout: 5000
});
return;
@ -50,7 +50,7 @@ var RDB = require('./redis.js'),
alert_id: 'post_favourite',
title: 'Not Logged In',
message: 'Please log in in order to favourite this post',
type: 'error',
type: 'danger',
timeout: 5000
});
return;

@ -191,7 +191,7 @@ var RDB = require('./redis.js'),
Posts.emitContentTooShortAlert = function(socket) {
socket.emit('event:alert', {
type: 'error',
type: 'danger',
timeout: 2000,
title: 'Content too short',
message: "Please enter a longer post. At least " + meta.config.minimumPostLength + " characters.",
@ -203,7 +203,7 @@ var RDB = require('./redis.js'),
socket.emit('event:alert', {
title: 'Too many posts!',
message: 'You can only post every '+ meta.config.postDelay/1000 + ' seconds.',
type: 'error',
type: 'danger',
timeout: 2000
});
}

@ -544,7 +544,7 @@ marked.setOptions({
Topics.emitTitleTooShortAlert = function(socket) {
socket.emit('event:alert', {
type: 'error',
type: 'danger',
timeout: 2000,
title: 'Title too short',
message: "Please enter a longer title. At least " + meta.config.minimumTitleLength + " characters.",

@ -363,7 +363,7 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),
socket.emit('event:alert', {
title: 'Reply Unsuccessful',
message: 'You don&apos;t seem to be logged in, so you cannot reply.',
type: 'error',
type: 'danger',
timeout: 2000
});
return;

Loading…
Cancel
Save