[Script] WMEOpenData v2.40 (20180430)

[ img ]

Moderators: Unholy, Timbones

Re: [Script] WMEOpenData v2.39 (20180412)

Postby iainhouse » Sun Apr 29, 2018 4:27 pm

Since the new production release earlier this week, the Apply to Properties button doesn't appear to be doing anything - the selected street name stays stubbornly unchanged.

In the console, I'm getting the error "Uncaught TypeError: Cannot read property 'click' of undefined at HTMLSpanElement.oslClick". That appears to be triggered when the script tries to click on the Address Edit button.

The code is
Code: Select all
document.getElementsByClassName('address-edit-input')[0].click();

but I can't see anything with that classname on a quick check.

I'm pretty sure I had everything else disabled ;)
[ img ][ img ][ img ]
UK AdminsUK WikiWaze FAQWMEFU Script :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season
iainhouse
Country Manager
Country Manager
 
Posts: 9140
Joined: Mon Jul 23, 2012 5:16 pm
Location: on the road from London to insanity, with Waze HQ in the driving seat
Has thanked: 2051 times
Been thanked: 7007 times

Re: [Script] WMEOpenData v2.39 (20180412)

Postby Twister-UK » Mon Apr 30, 2018 1:04 pm

It looks like the UI element references that were part of the previous segment sidepanel design had been retained in the background when the current design was first introduced -> WMEOD continued to work just fine.

Now however, all the elements WMEOD uses to set a new segment name can no longer be accessed using those old references -> WMEOD fails to do anything useful when you ask it to set a new name...

At the same time as changing/removing these old references, the devs have also made the segment edit UI behave the same as other edit UIs in the side panel, so now in addition to modifying the field contents you then have to force a change event on each field to avoid WME ignoring the new content. Fortunately, having already learned about this the hard way what seems like aeons ago in URO+, dealing with this change was nothing more than a cut'n'paste exercise.

Just one more thing to fix when I get home tonight, so expect the next update Real Soon Now...
Chris (not to be confused with Chris or Chris...)
L5 AM SE England & Shetland Islands / WME Beta Tester / Script Writer
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store


[ img ][ img ][ img ]
Twister-UK
Beta tester
Beta tester
 
Posts: 3103
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 477 times
Been thanked: 2916 times

Re: [Script] WMEOpenData v2.40 (20180430)

Postby Twister-UK » Mon Apr 30, 2018 10:53 pm

2.40 is now compatible with the latest WME update...


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1941-wme-to-os-link
Chrome packaged version: https://chrome.google.com/webstore/deta ... mdbdnmcfei
Chris (not to be confused with Chris or Chris...)
L5 AM SE England & Shetland Islands / WME Beta Tester / Script Writer
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store


[ img ][ img ][ img ]
Twister-UK
Beta tester
Beta tester
 
Posts: 3103
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 477 times
Been thanked: 2916 times


Return to United Kingdom

Who is online

Users browsing this forum: No registered users