diff --git a/js/favoritesController.js b/js/favoritesController.js
index d5aee3b3..290d1ddb 100644
--- a/js/favoritesController.js
+++ b/js/favoritesController.js
@@ -51,9 +51,9 @@ FavoritesController.prototype = {
that.saveEnabledCategories();
that.updateMyFirstLastDates();
});
- // TODO
+ // zoom to category
$('body').on('click', '.zoomCategoryButton', function(e) {
- var cat = $(this).parent().parent().parent().attr('category');
+ var cat = $(this).parent().parent().parent().parent().attr('category');
that.zoomOnCategory(cat);
});
// show/hide all categories
@@ -497,6 +497,12 @@ FavoritesController.prototype = {
' ' +
' ' +
'
' +
+ ' ' +
+ ' ' +
+ ' '+t('maps', 'Zoom to bounds')+'' +
+ ' ' +
+ ' ' +
+ ' ' +
' ' +
' ' +
' '+t('maps', 'Delete')+'' +
diff --git a/js/tracksController.js b/js/tracksController.js
index 41b88646..cc0ca621 100644
--- a/js/tracksController.js
+++ b/js/tracksController.js
@@ -45,9 +45,9 @@ TracksController.prototype = {
var id = $(this).parent().attr('track');
that.toggleTrack(id, true);
});
- // TODO zoom to bounds
+ // zoom on track
$('body').on('click', '.zoomTrackButton', function(e) {
- var id = $(this).parent().parent().parent().attr('track');
+ var id = $(this).parent().parent().parent().parent().attr('track');
that.zoomOnTrack(id);
});
// remove a track
@@ -445,6 +445,12 @@ TracksController.prototype = {
' ' +
' ' +
' ' +
+ ' ' +
+ ' ' +
+ ' '+t('maps', 'Zoom to bounds')+'' +
+ ' ' +
+ ' ' +
+ ' ' +
' ' +
' ' +
' '+t('maps', 'Show track elevation')+'' +