linting acp

v1.18.x
psychobunny 10 years ago
parent f6d90782a8
commit c3541dbc95

@ -1,5 +1,5 @@
"use strict"; "use strict";
/* global define, socket */ /* global define, socket, app */
define('admin/advanced/logs', function() { define('admin/advanced/logs', function() {
var Logs = {}; var Logs = {};
@ -28,7 +28,7 @@ define('admin/advanced/logs', function() {
case 'clear': case 'clear':
socket.emit('admin.logs.clear', function(err) { socket.emit('admin.logs.clear', function(err) {
if (!err) { if (!err) {
app.alertSuccess('Logs Cleared!') app.alertSuccess('Logs Cleared!');
btnEl.prev().click(); btnEl.prev().click();
} }
}); });

@ -1,5 +1,5 @@
"use strict"; "use strict";
/* global define, app, socket */ /* global ace, define, app, socket */
define('admin/appearance/customise', ['admin/settings'], function(Settings) { define('admin/appearance/customise', ['admin/settings'], function(Settings) {
var Customise = {}; var Customise = {};

@ -1,5 +1,5 @@
"use strict"; "use strict";
/* global define, app, socket */ /* global define, app, socket, templates */
define('admin/appearance/skins', function() { define('admin/appearance/skins', function() {
var Skins = {}; var Skins = {};

@ -1,5 +1,5 @@
"use strict"; "use strict";
/* global define, socket */ /* global app, define, socket */
define('admin/general/sounds', ['sounds', 'settings'], function(Sounds, Settings) { define('admin/general/sounds', ['sounds', 'settings'], function(Sounds, Settings) {
var SoundsAdmin = {}; var SoundsAdmin = {};

@ -1,5 +1,5 @@
"use strict"; "use strict";
/* global socket, define, templates, bootbox, app, ajaxify, */ /* global config, socket, define, templates, bootbox, app, ajaxify, */
define('admin/manage/users', ['admin/modules/selectable'], function(selectable) { define('admin/manage/users', ['admin/modules/selectable'], function(selectable) {
var Users = {}; var Users = {};
@ -145,7 +145,7 @@ define('admin/manage/users', ['admin/modules/selectable'], function(selectable)
} }
app.alertSuccess('[[notifications:email-confirm-sent]]'); app.alertSuccess('[[notifications:email-confirm-sent]]');
}); });
}) });
$('.password-reset-email').on('click', function() { $('.password-reset-email').on('click', function() {
var uids = getSelectedUids(); var uids = getSelectedUids();

@ -23,7 +23,7 @@ define(function() {
setupACPSearch(); setupACPSearch();
}); });
};; };
function setupACPSearch() { function setupACPSearch() {
var menu = $('#acp-search .dropdown-menu'), var menu = $('#acp-search .dropdown-menu'),

Loading…
Cancel
Save