diff --git a/www/app/spot/spot/spot-popover.html b/www/app/spot/spot/spot-popover.html index 0af4e239..c8976fd5 100644 --- a/www/app/spot/spot/spot-popover.html +++ b/www/app/spot/spot/spot-popover.html @@ -7,6 +7,9 @@ Copy this Spot + + Go To this Spot Page + \ No newline at end of file diff --git a/www/app/spot/spot/spot.controller.js b/www/app/spot/spot/spot.controller.js index bb6e4865..f72c1d81 100644 --- a/www/app/spot/spot/spot.controller.js +++ b/www/app/spot/spot/spot.controller.js @@ -68,7 +68,9 @@ vm.fieldChanged = fieldChanged; vm.goBack = goBack; vm.goToBackHistoryUrl = goToBackHistoryUrl; + vm.goToSpot = goToSpot; vm.goToTag = goToTag; + vm.isState = isState; vm.loadTab = loadTab; vm.saveSpot = saveSpot; vm.showTab = showTab; @@ -410,10 +412,18 @@ vm.backHistoriesPopover.hide(); } + function goToSpot() { + $location.path('app/spotTab/' + vm.spot.properties.id + '/spot'); + } + function goToTag(id) { submit('/app/tags/' + id); } + function isState(stateName) { + return stateName === $state.current.name; + } + function isTagChecked(tag) { if (vm.spot) { if (vm.stateName === 'app.spotTab.tags' || vm.stateName === 'app.spotTab.spot') {