diff options
| -rw-r--r-- | www/js/TimelineCtrl.js | 7 | ||||
| -rw-r--r-- | www/lang/locale-en.json | 1 | ||||
| -rw-r--r-- | www/templates/timeline.html | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/www/js/TimelineCtrl.js b/www/js/TimelineCtrl.js index 2e0c30b8..0f67b085 100644 --- a/www/js/TimelineCtrl.js +++ b/www/js/TimelineCtrl.js @@ -96,7 +96,12 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla }); } - + // helps to navigate to current time quickly + // after a night of heavy navigation + $scope.gotoNow = function() + { + timeline.moveTo(timeline.getCurrentTime()); + }; $scope.move = function(percentage) { move(percentage); diff --git a/www/lang/locale-en.json b/www/lang/locale-en.json index 78175511..6e999e49 100644 --- a/www/lang/locale-en.json +++ b/www/lang/locale-en.json @@ -210,6 +210,7 @@ "kNoMonitors" :"No monitors to display", "kNoMoreEvents" :"no more events", "kNormalPlay" :"normal play", + "kNow" :"now", "kOff" :"off", "kOn" :"on", "kOnTapNavigate" :"on tap, navigate to", diff --git a/www/templates/timeline.html b/www/templates/timeline.html index ab9d8030..d2ada69d 100644 --- a/www/templates/timeline.html +++ b/www/templates/timeline.html @@ -37,6 +37,9 @@ <button ng-click="toggleFollowTime()" ng-class="follow.time? 'button button-small button-balanced':'button button-small button-assertive'"> {{'kUpdateTimeline' | translate}}: {{follow.time}} </button> + <button ng-click="gotoNow()" class="button button-small button-balanced"> + {{'kNow' | translate}} + </button> <div ng-if="follow.time"> <p>{{newEvents}}</p> </div> |
