From bfb686fbbb9d6e38a494a926cfbe21897abb009a Mon Sep 17 00:00:00 2001 From: justins83 Date: Tue, 5 Feb 2019 16:10:11 -0500 Subject: [PATCH] Update WMEPIE.js --- WMEPIE.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WMEPIE.js b/WMEPIE.js index fdaa62a..01a6794 100644 --- a/WMEPIE.js +++ b/WMEPIE.js @@ -1,7 +1,7 @@ // ==UserScript== // @name WME Place Interface Enhancements // @namespace https://greasyfork.org/users/30701-justins83-waze -// @version 2019.02.05.01 +// @version 2019.02.05.02 // @description Enhancements to various Place interfaces // @include https://www.waze.com/editor* // @include https://www.waze.com/*/editor* @@ -835,7 +835,7 @@ var UpdateObject, MultiAction; registerEvents(AddMakePrimaryButtons); AddMakePrimaryButtons(); - WazeWrap.Interface.ShowScriptUpdate("WME Place Interface Enhancements", GM_info.script.version, "Bug fixes for WME update: ", "https://greasyfork.org/en/scripts/26340-wme-place-interface-enhancements", "https://www.waze.com/forum/viewtopic.php?f=819&t=215990"); + WazeWrap.Interface.ShowScriptUpdate("WME Place Interface Enhancements", GM_info.script.version, "More bug fixes

2019.05.02.01

Bug fixes for WME update: ", "https://greasyfork.org/en/scripts/26340-wme-place-interface-enhancements", "https://www.waze.com/forum/viewtopic.php?f=819&t=215990"); } function SetupPhotoViewer(){ @@ -1446,8 +1446,8 @@ var UpdateObject, MultiAction; // Formats "hour object" into a string. function formatOpeningHour(hourEntry) { var dayNames = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']; - var hours = hourEntry.attributes.fromHour + '-' + hourEntry.attributes.toHour; - return hourEntry.attributes.days.map(day => dayNames[day] + ' ' + hours).join(', '); + var hours = hourEntry.fromHour + '-' + hourEntry.toHour; + return hourEntry.days.map(day => dayNames[day] + ' ' + hours).join(', '); } // Pull natural text from opening hours