Fix typos in actual code. A CSS class name, and a variable name.

This commit is contained in:
Mike Castle 2013-12-03 21:59:21 -08:00
parent 27991bab10
commit 1732f11f03
2 changed files with 10 additions and 10 deletions

View File

@ -68,7 +68,7 @@ window.plugin.portalDefense.renderAttackRegion = function(portal) {
} }
var region = L.marker(portal.getLatLng(), { var region = L.marker(portal.getLatLng(), {
icon: L.divIcon({ icon: L.divIcon({
className: 'plugin-iic-defense', className: 'plugin-iitc-defense',
clickable: false, clickable: false,
iconAnchor: [-10,10], iconAnchor: [-10,10],
html: "<div class='defense-label'>"+display+"</div>" html: "<div class='defense-label'>"+display+"</div>"
@ -127,7 +127,7 @@ var setup = function() {
$('#toolbox').append(' <a onclick="window.plugin.portalDefense.reload()">Reload Defense</a>'); $('#toolbox').append(' <a onclick="window.plugin.portalDefense.reload()">Reload Defense</a>');
$("<style>") $("<style>")
.prop("type", "text/css") .prop("type", "text/css")
.html(".plugin-iic-defense {\ .html(".plugin-iitc-defense {\
font-size: 10px;\ font-size: 10px;\
color: #FFFFBB;\ color: #FFFFBB;\
font-family: monospace;\ font-family: monospace;\

View File

@ -74,17 +74,17 @@ window.plugin.showLinkedPortal.getPortalByGuid = function (guid,isorigin) {
if (window.portals[guid] !== undefined) { if (window.portals[guid] !== undefined) {
var portalData = window.portals[guid].options.data; var portalData = window.portals[guid].options.data;
var portalNameAdressAlt = "'" + portalData.title + "'";; var portalNameAddressAlt = "'" + portalData.title + "'";;
var portalNameAdressTitle = $('<div/>').append($('<strong/>').text(portalData.title)) var portalNameAddressTitle = $('<div/>').append($('<strong/>').text(portalData.title))
.append($('<br/>')) .append($('<br/>'))
.append(linkDirection) .append(linkDirection)
.html(); .html();
var imageUrl = fixPortalImageUrl(portalData.image); var imageUrl = fixPortalImageUrl(portalData.image);
portalInfoString = $('<div/>').html($('<img/>').attr('src', imageUrl) portalInfoString = $('<div/>').html($('<img/>').attr('src', imageUrl)
.attr('class', 'minImg') .attr('class', 'minImg')
.attr('alt', portalNameAdressAlt) .attr('alt', portalNameAddressAlt)
.attr('title', portalNameAdressTitle)) .attr('title', portalNameAddressTitle))
.html(); .html();
} else { } else {
var title = $('<div/>').append($('<strong/>').text('Go to portal')) var title = $('<div/>').append($('<strong/>').text('Go to portal'))
.append($('<br/>')) .append($('<br/>'))