Fix a variety of typos.
This commit is contained in:
parent
6fcbd90588
commit
7a07f622de
@ -106,7 +106,7 @@ window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) {
|
|||||||
// Currently this edge case is not handled. Let’s see if this is a
|
// Currently this edge case is not handled. Let’s see if this is a
|
||||||
// problem in crowded areas.
|
// problem in crowded areas.
|
||||||
$.extend(data, {minTimestampMs: min});
|
$.extend(data, {minTimestampMs: min});
|
||||||
// when requesting with an acutal minimum timestamp, request oldest rather than newest first.
|
// when requesting with an actual minimum timestamp, request oldest rather than newest first.
|
||||||
// this matches the stock intel site, and ensures no gaps when continuing after an extended idle period
|
// this matches the stock intel site, and ensures no gaps when continuing after an extended idle period
|
||||||
if (min > -1) $.extend(data, {ascendingTimestampOrder: true});
|
if (min > -1) $.extend(data, {ascendingTimestampOrder: true});
|
||||||
}
|
}
|
||||||
|
@ -64,18 +64,18 @@ window.runHooks = function(event, data) {
|
|||||||
if(VALID_HOOKS.indexOf(event) === -1) throw('Unknown event type: ' + event);
|
if(VALID_HOOKS.indexOf(event) === -1) throw('Unknown event type: ' + event);
|
||||||
|
|
||||||
if(!_hooks[event]) return true;
|
if(!_hooks[event]) return true;
|
||||||
var interupted = false;
|
var interrupted = false;
|
||||||
$.each(_hooks[event], function(ind, callback) {
|
$.each(_hooks[event], function(ind, callback) {
|
||||||
try {
|
try {
|
||||||
if (callback(data) === false) {
|
if (callback(data) === false) {
|
||||||
interupted = true;
|
interrupted = true;
|
||||||
return false; //break from $.each
|
return false; //break from $.each
|
||||||
}
|
}
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
console.error('error running hook '+event+', error: '+err);
|
console.error('error running hook '+event+', error: '+err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return !interupted;
|
return !interrupted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -198,14 +198,14 @@ body {
|
|||||||
.linkdetails aside {
|
.linkdetails aside {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
margin-botton: 3px;
|
margin-bottom: 3px;
|
||||||
border: 2px outset #0e3d4e;
|
border: 2px outset #0e3d4e;
|
||||||
}
|
}
|
||||||
|
|
||||||
#toolbox > a {
|
#toolbox > a {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
margin-botton: 3px;
|
margin-bottom: 3px;
|
||||||
border: 2px outset #0e3d4e;
|
border: 2px outset #0e3d4e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;\
|
||||||
|
@ -76,8 +76,8 @@ window.plugin.showLinkedPortal.getPortalByGuid = function (guid,isorigin) {
|
|||||||
if (window.portals[guid] !== undefined) {
|
if (window.portals[guid] !== undefined) {
|
||||||
var portalDetails = window.portals[guid].options.details;
|
var portalDetails = window.portals[guid].options.details;
|
||||||
|
|
||||||
var portalNameAdressAlt = "'" + portalDetails.portalV2.descriptiveText.TITLE + "' (" + portalDetails.portalV2.descriptiveText.ADDRESS + ")";
|
var portalNameAddressAlt = "'" + portalDetails.portalV2.descriptiveText.TITLE + "' (" + portalDetails.portalV2.descriptiveText.ADDRESS + ")";
|
||||||
var portalNameAdressTitle = $('<div/>').append($('<strong/>').text(portalDetails.portalV2.descriptiveText.TITLE))
|
var portalNameAddressTitle = $('<div/>').append($('<strong/>').text(portalDetails.portalV2.descriptiveText.TITLE))
|
||||||
.append($('<br/>'))
|
.append($('<br/>'))
|
||||||
.append($('<em/>').text('(' + portalDetails.portalV2.descriptiveText.ADDRESS + ')'))
|
.append($('<em/>').text('(' + portalDetails.portalV2.descriptiveText.ADDRESS + ')'))
|
||||||
.append($('<br/>'))
|
.append($('<br/>'))
|
||||||
@ -86,8 +86,8 @@ window.plugin.showLinkedPortal.getPortalByGuid = function (guid,isorigin) {
|
|||||||
var imageUrl = getPortalImageUrl(portalDetails);
|
var imageUrl = getPortalImageUrl(portalDetails);
|
||||||
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('Zoom out'))
|
var title = $('<div/>').append($('<strong/>').text('Zoom out'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user