forked from MTSR/mapserver
jshint
This commit is contained in:
parent
c57436ddf8
commit
ce3e68bfd4
@ -2,7 +2,7 @@
|
||||
|
||||
var worldInfoRender = function(info){
|
||||
return "Lag: " + parseInt(info.max_lag*10)/10 + " Time: " + parseInt(info.time)/1000;
|
||||
}
|
||||
};
|
||||
|
||||
// coord display
|
||||
var WorldInfoDisplay = L.Control.extend({
|
||||
@ -15,7 +15,7 @@ var WorldInfoDisplay = L.Control.extend({
|
||||
var div = L.DomUtil.create('div', 'leaflet-bar leaflet-custom-display');
|
||||
|
||||
this.wsChannel.addListener("minetest-info", function(info){
|
||||
m.render(div, worldInfoRender(info))
|
||||
m.render(div, worldInfoRender(info));
|
||||
});
|
||||
|
||||
return div;
|
||||
|
@ -12,7 +12,7 @@ var ATMOverlay = AbstractIconOverlay.extend({
|
||||
},
|
||||
|
||||
getIcon: function(obj){
|
||||
var img = "pics/atm_front.png"
|
||||
var img = "pics/atm_front.png";
|
||||
|
||||
if (obj.attributes.type == "wiretransfer")
|
||||
img = "pics/atm_front.png";
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* exported ATMOverlay */
|
||||
/* exported LocatorOverlay */
|
||||
/* globals AbstractIconOverlay: true */
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ var LocatorOverlay = AbstractIconOverlay.extend({
|
||||
},
|
||||
|
||||
getIcon: function(obj){
|
||||
var img = "pics/locator_beacon_level1.png"
|
||||
var img = "pics/locator_beacon_level1.png";
|
||||
|
||||
if (obj.attributes.level == "2")
|
||||
img = "pics/locator_beacon_level2.png";
|
||||
@ -31,6 +31,6 @@ var LocatorOverlay = AbstractIconOverlay.extend({
|
||||
return "<h4>Locator</h4><hr>" +
|
||||
"<b>Owner: " + obj.attributes.owner + "</b><br>" +
|
||||
"<b>Name:</b> " + obj.attributes.name + "<br>" +
|
||||
"<b>Level:</b> " obj.attributes.level "<br>";
|
||||
"<b>Level:</b> " + obj.attributes.level + "<br>";
|
||||
}
|
||||
});
|
||||
|
@ -50,7 +50,7 @@ var SearchResult = {
|
||||
if (obj.type == "locator"){
|
||||
description = m("span", obj.attributes.name);
|
||||
|
||||
var img = "pics/locator_beacon_level1.png"
|
||||
var img = "pics/locator_beacon_level1.png";
|
||||
|
||||
if (obj.attributes.level == "2")
|
||||
img = "pics/locator_beacon_level2.png";
|
||||
|
Loading…
Reference in New Issue
Block a user