Fix a couple things after code review
This commit is contained in:
parent
8bb500efe2
commit
76b953f801
@ -26,12 +26,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Globals
|
// Globals
|
||||||
lockGot = false;
|
var lockGot = false;
|
||||||
terrainGot = false;
|
var terrainGot = false;
|
||||||
latitude = 0.0000;
|
var latitude = 0.0000;
|
||||||
longitude = 0.0000;
|
var longitude = 0.0000;
|
||||||
gpsaccuracy = 9999;
|
var gpsaccuracy = 9999;
|
||||||
requiredaccuracy = 40;
|
var requiredaccuracy = 40;
|
||||||
// End Globals
|
// End Globals
|
||||||
|
|
||||||
var fetchplacecounter = 0;
|
var fetchplacecounter = 0;
|
||||||
|
@ -147,10 +147,11 @@ function scanCode() {
|
|||||||
|
|
||||||
function sortResults(array, prop, asc) {
|
function sortResults(array, prop, asc) {
|
||||||
array = array.sort(function (a, b) {
|
array = array.sort(function (a, b) {
|
||||||
if (asc)
|
if (asc) {
|
||||||
return (a[prop] > b[prop]) ? 1 : ((a[prop] < b[prop]) ? -1 : 0);
|
return (a[prop] > b[prop]) ? 1 : ((a[prop] < b[prop]) ? -1 : 0);
|
||||||
else
|
} else {
|
||||||
return (b[prop] > a[prop]) ? 1 : ((b[prop] < a[prop]) ? -1 : 0);
|
return (b[prop] > a[prop]) ? 1 : ((b[prop] < a[prop]) ? -1 : 0);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ function getChat() {
|
|||||||
data.forEach(function (msg) {
|
data.forEach(function (msg) {
|
||||||
var usernameclass = "chat-username";
|
var usernameclass = "chat-username";
|
||||||
if (msg.username === 'skylarmt') {
|
if (msg.username === 'skylarmt') {
|
||||||
usernameclass = "chat-username-admin"
|
usernameclass = "chat-username-admin";
|
||||||
}
|
}
|
||||||
content += "<span class='" + usernameclass + "' onclick='openProfile(\"" + msg.username + "\");'>" + msg.username + "</span> " + msg.message + "<br />";
|
content += "<span class='" + usernameclass + "' onclick='openProfile(\"" + msg.username + "\");'>" + msg.username + "</span> " + msg.message + "<br />";
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user