Merge remote-tracking branch 'refs/remotes/origin/master' into develop

v1.18.x
Barış Soner Uşaklı 7 years ago
commit b2cb3def98

@ -60,7 +60,7 @@
"mousetrap": "^1.6.1", "mousetrap": "^1.6.1",
"mubsub": "^1.4.0", "mubsub": "^1.4.0",
"nconf": "^0.9.1", "nconf": "^0.9.1",
"nodebb-plugin-composer-default": "6.0.9", "nodebb-plugin-composer-default": "6.0.11",
"nodebb-plugin-dbsearch": "2.0.9", "nodebb-plugin-dbsearch": "2.0.9",
"nodebb-plugin-emoji": "2.1.0", "nodebb-plugin-emoji": "2.1.0",
"nodebb-plugin-emoji-android": "2.0.0", "nodebb-plugin-emoji-android": "2.0.0",

@ -9,7 +9,7 @@
"continue_to": "Continuar para %1", "continue_to": "Continuar para %1",
"return_to": "Voltar para %1", "return_to": "Voltar para %1",
"new_notification": "Nova Notificação", "new_notification": "Nova Notificação",
"new_notification_from": "You have a new Notification from %1", "new_notification_from": "Você possui uma nova notificação de %1",
"you_have_unread_notifications": "Você possui notificações não lidas.", "you_have_unread_notifications": "Você possui notificações não lidas.",
"all": "Tudo", "all": "Tudo",
"topics": "Tópicos", "topics": "Tópicos",

@ -191,6 +191,9 @@ define('admin/manage/users', ['translator', 'benchpress'], function (translator,
app.alertSuccess('[[admin/manage/users:alerts.delete-success]]'); app.alertSuccess('[[admin/manage/users:alerts.delete-success]]');
removeSelected(); removeSelected();
unselectAll(); unselectAll();
if (!$('.users-table [component="user/select/single"]').length) {
ajaxify.refresh();
}
}); });
} }
}); });
@ -211,6 +214,9 @@ define('admin/manage/users', ['translator', 'benchpress'], function (translator,
app.alertSuccess('[[admin/manage/users:alerts.delete-success]]'); app.alertSuccess('[[admin/manage/users:alerts.delete-success]]');
removeSelected(); removeSelected();
unselectAll(); unselectAll();
if (!$('.users-table [component="user/select/single"]').length) {
ajaxify.refresh();
}
}); });
} }
}); });

@ -193,7 +193,7 @@ define('navigator', ['forum/pagination', 'components'], function (pagination, co
index = index > count ? count : index; index = index > count ? count : index;
var relIndex = getRelativeIndex(); var relIndex = getRelativeIndex();
$('.pagination-block .pagination-text').translateHtml('[[global:pagination.out_of, ' + relIndex + ', ' + count + ']]'); $('.pagination-block .pagination-text').translateHtml('[[global:pagination.out_of, ' + relIndex + ', ' + count + ']]');
var fraction = relIndex / count; var fraction = (relIndex - 1) / (count - 1 || 1);
$('.pagination-block meter').val(fraction); $('.pagination-block meter').val(fraction);
$('.pagination-block .progress-bar').width((fraction * 100) + '%'); $('.pagination-block .progress-bar').width((fraction * 100) + '%');
}; };

@ -292,13 +292,7 @@ module.exports = function (Groups) {
async.each(groups, function (groupName, next) { async.each(groups, function (groupName, next) {
async.parallel([ async.parallel([
function (next) { function (next) {
Groups.isMember(uid, groupName, function (err, isMember) { Groups.leave(groupName, uid, next);
if (!err && isMember) {
Groups.leave(groupName, uid, next);
} else {
next();
}
});
}, },
function (next) { function (next) {
Groups.rejectMembership(groupName, uid, next); Groups.rejectMembership(groupName, uid, next);

@ -220,9 +220,10 @@ function pushToUids(uids, notification, callback) {
async.eachLimit(uids, 3, function (uid, next) { async.eachLimit(uids, 3, function (uid, next) {
emailer.send('notification', uid, { emailer.send('notification', uid, {
path: notification.path, path: notification.path,
subject: notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]', subject: utils.stripHTMLTags(notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]'),
intro: utils.stripHTMLTags(notification.bodyShort), intro: utils.stripHTMLTags(notification.bodyShort),
body: utils.stripHTMLTags(notification.bodyLong || ''), body: utils.stripHTMLTags(notification.bodyLong || ''),
notification: notification,
showUnsubscribe: true, showUnsubscribe: true,
}, next); }, next);
}, callback); }, callback);

Loading…
Cancel
Save