linting admin/index; admin/languages

This commit is contained in:
psychobunny
2014-03-12 16:15:39 -04:00
parent 2d65a746e4
commit 6ea760d636
2 changed files with 12 additions and 2 deletions

View File

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

View File

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