diff --git a/plugins/uniques.user.js b/plugins/uniques.user.js index 7a09a15d..095c81c5 100644 --- a/plugins/uniques.user.js +++ b/plugins/uniques.user.js @@ -38,6 +38,8 @@ window.plugin.uniques.enableSync = false; window.plugin.uniques.disabledMessage = null; window.plugin.uniques.contentHTML = null; +window.plugin.uniques.isHighlightActive = false; + window.plugin.uniques.onPortalDetailsUpdated = function() { if(typeof(Storage) === "undefined") { $('#portaldetails > .imgpreview').after(plugin.uniques.disabledMessage); @@ -148,7 +150,9 @@ window.plugin.uniques.updateChecked = function() { captured = (uniqueInfo && uniqueInfo.captured) || false; $('#visited').prop('checked', visited); $('#captured').prop('checked', captured); - plugin.uniques.highlight({portal: portals[guid]}); + if (window.plugin.uniques.isHighlightActive) { + plugin.uniques.highlight({portal: portals[guid]}); + } } window.plugin.uniques.setPortalVisited = function(guid) { @@ -327,6 +331,11 @@ window.plugin.uniques.highlight = function(data) { data.portal.setStyle({fillColor: fillColor, fillOpacity: 0.75}); } +window.plugin.uniques.highlightActive = function(active) { + window.plugin.uniques.isHighlightActive = active; +} + + window.plugin.uniques.setupCSS = function() { $("