Skip to content

Commit

Permalink
Update WMEPIE.js
Browse files Browse the repository at this point in the history
  • Loading branch information
justins83 authored Mar 7, 2023
1 parent 32629b9 commit 1e0cf24
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 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 2023.03.03.02
// @version 2023.03.07.01
// @description Enhancements to various Place interfaces
// @include https://www.waze.com/editor*
// @include https://www.waze.com/*/editor*
Expand Down Expand Up @@ -51,7 +51,7 @@ var UpdateObject, MultiAction;
let hoursparser;
let GLE;
var catalog = [];
const updateMessage = "Fixing 12th item bug. Hours parser should be displaying again.";
const updateMessage = "Hours parser was showing again, but now it actually works, too!";
var lastSelectedFeature;

//Layer definitions
Expand Down Expand Up @@ -1461,12 +1461,11 @@ var UpdateObject, MultiAction;
].join(' '));
var appendDiv = (function() {
$('.opening-hours-add').parent().append($PIEHoursParser.html());
$('#PIEAppendHours').click(function(){ addHours(false);});
$('#PIEReplaceHours').click(function(){ addHours(true);});
});
delayFire(150, appendDiv);

$('#PIEAppendHours').click(function(){ addHours(false);});
$('#PIEReplaceHours').click(function(){ addHours(true);});

// Enter = Add hours, shift || ctrl + Enter = new line
$("#PIE-hourspaste").keydown(function(event){
if (event.keyCode === 13) {
Expand Down

0 comments on commit 1e0cf24

Please sign in to comment.