Skip to content

Commit

Permalink
Update WMEPIE.js
Browse files Browse the repository at this point in the history
Forcing the RPP layer enabled when creating a new RPP from the PIE Place menu
  • Loading branch information
justins83 authored Dec 7, 2017
1 parent d1c3de4 commit eb7c747
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 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 2017.12.01.01
// @version 2017.12.06.01
// @description Enhancements to various Place interfaces
// @include https://www.waze.com/editor*
// @include https://www.waze.com/*/editor*
Expand All @@ -19,7 +19,7 @@ var UpdateObject, MultiAction;
(function() {
'use strict';

var curr_ver = "2017.12.01.01";
var curr_ver = "2017.12.06.01";
var settings = {};
var placeMenuSelector = "#edit-buttons > div > div.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";//"#edit-buttons > div > div.toolbar-button.waze-icon-place.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";
//"#edit-buttons > div > div.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";
Expand Down Expand Up @@ -1170,6 +1170,14 @@ var UpdateObject, MultiAction;
$("#layer-switcher-item_parking_places").click();
}
}
else if(category === resCategory)
{
if(!isChecked("layer-switcher-item_residential_places")){
if(!isChecked("layer-switcher-group_places"))
$("#layer-switcher-group_places").click();
$("#layer-switcher-item_residential_places").click();
}
}
$('#edit-buttons > div > div.toolbar-button.waze-icon-place.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive').removeClass("open");
newPlaceCategory = category;
var polyDrawFeatureOptions = {callbacks : {"done": doneHandler}};
Expand Down

0 comments on commit eb7c747

Please sign in to comment.