Skip to content

Commit

Permalink
Update WMEPIE.js
Browse files Browse the repository at this point in the history
  • Loading branch information
justins83 authored May 31, 2019
1 parent c54d2b4 commit 76826d7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions WMEPIE.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name WME Place Interface Enhancements
// @namespace https://greasyfork.org/users/30701-justins83-waze
// @version 2019.05.03.01
// @version 2019.05.31.01
// @description Enhancements to various Place interfaces
// @include https://www.waze.com/editor*
// @include https://www.waze.com/*/editor*
Expand Down Expand Up @@ -50,7 +50,7 @@ var UpdateObject, MultiAction;
let hoursparser;
let GLE;
var catalog = [];
const updateMessage = "";
const updateMessage = "Disabling Google Link Enhancer when in Event mode";

//Layer definitions
{
Expand Down Expand Up @@ -863,9 +863,22 @@ var UpdateObject, MultiAction;
registerEvents(AddMakePrimaryButtons);
AddMakePrimaryButtons();

WazeWrap.Events.register("change:mode", null, function(x, modeID){
if(modeID === 1) //in event mode
GLE.disable();
else{
if(settings.EnableGLE)
GLE.enable();
}
});

WazeWrap.Interface.ShowScriptUpdate("WME Place Interface Enhancements", GM_info.script.version, updateMessage, "", "https://www.waze.com/forum/viewtopic.php?f=819&t=215990");
}

function handleEventModeChange(){

}

function SetupPhotoViewer(){
//Black background
let mainDiv=document.createElement('div');
Expand Down

0 comments on commit 76826d7

Please sign in to comment.