Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
Fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwouaiebe committed Feb 14, 2021
1 parent 9b2b896 commit 78b22bc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildNumber.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "buildNumber" : "00814"}
{ "buildNumber" : "00821"}
2 changes: 1 addition & 1 deletion src/contextMenus/RouteContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function ourNewRouteContextMenu ( contextMenuEvent, parentDiv ) {
{
context : myZoomer,
name : theTranslator.getText ( 'RouteContextMenu - Zoom to route' ),
action : myZoomer.zoomToRoute,
action : myRoute.hidden ? null : myZoomer.zoomToRoute,
param : myRouteObjId
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/dialogs/NoteDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function ourNewNoteDialog ( note, routeObjId, startGeoCoder ) {
}
if ( '' !== myLinkInput.value ) {
if ( '' === theHTMLSanitizer.sanitizeToUrl ( myLinkInput.value ).url ) {
myNoteDialog.showError ( theTranslator.getText ( 'Notedialog - invalidUrl' ) );
myNoteDialog.showError ( theTranslator.getText ( 'NoteDialog - invalidUrl' ) );
return;
}
}
Expand Down Expand Up @@ -437,7 +437,7 @@ function ourNewNoteDialog ( note, routeObjId, startGeoCoder ) {
myNoteDialog.hideError ( );
}
else {
myNoteDialog.showError ( verifyResult.errorsString );
myNoteDialog.showError ( theTranslator.getText ( 'NoteDialog - invalidUrl' ) );
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/translations/TravelNotesEN.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@
"msgid" : "NoteDialog - Icon content",
"msgstr" : "Icon content\u00A0:\u00A0"
},
{
"msgid" : "NoteDialog - invalidUrl",
"msgstr" : "Invalid link"
},
{
"msgid" : "NoteDialog - Link",
"msgstr" : "Link : "
Expand Down
4 changes: 4 additions & 0 deletions src/translations/TravelNotesFR.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@
"msgid" : "NoteDialog - Icon content",
"msgstr" : "Contenu de l'icône\u00a0:\u00a0"
},
{
"msgid" : "NoteDialog - invalidUrl",
"msgstr" : "Lien non valide"
},
{
"msgid" : "NoteDialog - Link",
"msgstr" : "Lien : "
Expand Down

0 comments on commit 78b22bc

Please sign in to comment.