lint compliance

pull/1/head
ansuz 4 years ago
parent 57080dd5ca
commit 416ba823bd

@ -1060,7 +1060,7 @@ define([
var form = h('div.cp-admin-broadcast-form'); var form = h('div.cp-admin-broadcast-form');
var $form = $(form).appendTo($div); var $form = $(form).appendTo($div);
var refresh = getApi(function (Broadcast) { var refresh = getApi(function (/* Broadcast */) { // XXX unused argument
var button = h('button.btn.btn-primary', Messages.admin_broadcastButton); var button = h('button.btn.btn-primary', Messages.admin_broadcastButton);
var $button = $(button); var $button = $(button);
var removeButton = h('button.btn.btn-danger', Messages.admin_broadcastCancel); var removeButton = h('button.btn.btn-danger', Messages.admin_broadcastCancel);
@ -1230,7 +1230,7 @@ define([
var send = function (data) { var send = function (data) {
$button.prop('disabled', 'disabled'); $button.prop('disabled', 'disabled');
data.time = +new Date(); data.time = +new Date();
common.mailbox.sendTo('BROADCAST_CUSTOM', data, {}, function (err, data) { common.mailbox.sendTo('BROADCAST_CUSTOM', data, {}, function (err /*, data */) { // XXX unused argument
if (err) { if (err) {
$button.prop('disabled', ''); $button.prop('disabled', '');
console.error(err); console.error(err);
@ -1255,7 +1255,7 @@ define([
if (!activeUid) { return; } if (!activeUid) { return; }
common.mailbox.sendTo('BROADCAST_DELETE', { common.mailbox.sendTo('BROADCAST_DELETE', {
uid: activeUid uid: activeUid
}, {}, function (err, data) { }, {}, function (err /* , data */) { // XXX unused argument
if (err) { return UI.warn(Messages.error); } if (err) { return UI.warn(Messages.error); }
UI.log(Messages.saved); UI.log(Messages.saved);
refresh(); refresh();
@ -1349,7 +1349,7 @@ define([
return; return;
} }
// Maintenance applied, send notification // Maintenance applied, send notification
common.mailbox.sendTo('BROADCAST_MAINTENANCE', {}, {}, function (err, data) { common.mailbox.sendTo('BROADCAST_MAINTENANCE', {}, {}, function (/* err, data */) { // XXX unused arguments
refresh(); refresh();
checkLastBroadcastHash(); checkLastBroadcastHash();
}); });
@ -1445,7 +1445,7 @@ define([
// Maintenance applied, send notification // Maintenance applied, send notification
common.mailbox.sendTo('BROADCAST_SURVEY', { common.mailbox.sendTo('BROADCAST_SURVEY', {
url: data url: data
}, {}, function (err, data) { }, {}, function (/* err, data */) { // XXX unused arguments
refresh(); refresh();
checkLastBroadcastHash(); checkLastBroadcastHash();
}); });

@ -687,7 +687,7 @@ define([
// Broadcast // Broadcast
var broadcasts = {}; //var broadcasts = {}; // XXX defined but never used ?
handlers['BROADCAST_MAINTENANCE'] = function (ctx, box, data, cb) { handlers['BROADCAST_MAINTENANCE'] = function (ctx, box, data, cb) {
var msg = data.msg; var msg = data.msg;
var uid = msg.uid; var uid = msg.uid;
@ -708,7 +708,7 @@ define([
var dismiss = !content.url; var dismiss = !content.url;
cb(dismiss, old); cb(dismiss, old);
}; };
var activeCustom var activeCustom;
handlers['BROADCAST_CUSTOM'] = function (ctx, box, data, cb) { handlers['BROADCAST_CUSTOM'] = function (ctx, box, data, cb) {
var msg = data.msg; var msg = data.msg;
var uid = msg.uid; var uid = msg.uid;

Loading…
Cancel
Save