linting admin/index; admin/languages

v1.18.x
psychobunny 11 years ago
parent 2d65a746e4
commit 6ea760d636

@ -1,3 +1,6 @@
"use strict";
/*global define, ajaxify, app, socket, RELATIVE_PATH*/
define(function() {
var Admin = {};
@ -43,8 +46,10 @@ define(function() {
var uniqueVisitors = $('#unique-visitors');
for(var key in data) {
if (data.hasOwnProperty(key)) {
uniqueVisitors.find('#' + key).text(data[key]);
}
}
});
};
@ -54,8 +59,10 @@ define(function() {
function getUserCountIn(room) {
var count = 0;
for(var user in data[room]) {
if (data[room].hasOwnProperty(user)) {
++count;
}
}
return count;
}

@ -1,3 +1,6 @@
"use strict";
/*global define*/
define(['forum/admin/settings'], function(Settings) {
$(function() {
Settings.prepare();

Loading…
Cancel
Save