Skip to content

Node.js based forum software built for the modern web

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

Julian Lam3861b2dd808e
diff --cc public/src/client/account/header.js
index b53cbb2be4,e99b7ee0a8..d662882e54
--- a/public/src/client/account/header.js
+++ b/public/src/client/account/header.js
@@@ -168,24 -167,23 +168,32 @@@ define('forum/account/header',
});
}
+ function flagAccount() {
+ require(['flags'], function (flags) {
+ flags.showFlagModal({
+ type: 'user',
+ id: ajaxify.data.uid
+ });
+ });
+ }
+
function removeCover() {
- socket.emit('user.removeCover', {
- uid: ajaxify.data.uid
- }, function (err) {
- if (!err) {
- ajaxify.refresh();
- } else {
- app.alertError(err.message);
- }
+ translator.translate('[[user:remove_cover_picture_confirm]]', function (translated) {
+ bootbox.confirm(translated, function (confirm) {
+ if (!confirm) {
+ return;
+ }
+
+ socket.emit('user.removeCover', {
+ uid: ajaxify.data.uid
+ }, function (err) {
+ if (!err) {
+ ajaxify.refresh();
+ } else {
+ app.alertError(err.message);
+ }
+ });
+ });
});
}