refs #44 add menu entries to zoom on tracks and fav categories
This commit is contained in:
Родитель
b2c84d71ad
Коммит
5aa0f48ff1
|
@ -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 = {
|
|||
' </a>' +
|
||||
' </li>' +
|
||||
' <li>' +
|
||||
' <a href="#" class="zoomCategoryButton">' +
|
||||
' <span class="icon-search"></span>' +
|
||||
' <span>'+t('maps', 'Zoom to bounds')+'</span>' +
|
||||
' </a>' +
|
||||
' </li>' +
|
||||
' <li>' +
|
||||
' <a href="#" class="deleteCategory">' +
|
||||
' <span class="icon-delete"></span>' +
|
||||
' <span>'+t('maps', 'Delete')+'</span>' +
|
||||
|
|
|
@ -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 = {
|
|||
' </a>' +
|
||||
' </li>' +
|
||||
' <li>' +
|
||||
' <a href="#" class="zoomTrackButton">' +
|
||||
' <span class="icon-search"></span>' +
|
||||
' <span>'+t('maps', 'Zoom to bounds')+'</span>' +
|
||||
' </a>' +
|
||||
' </li>' +
|
||||
' <li>' +
|
||||
' <a href="#" class="showTrackElevation">' +
|
||||
' <span class="icon-category-monitoring"></span>' +
|
||||
' <span>'+t('maps', 'Show track elevation')+'</span>' +
|
||||
|
|
Загрузка…
Ссылка в новой задаче