diff options
| -rw-r--r-- | www/js/TimelineCtrl.js | 5 | ||||
| -rw-r--r-- | www/templates/timeline.html | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/www/js/TimelineCtrl.js b/www/js/TimelineCtrl.js index c32d530e..1a7faae6 100644 --- a/www/js/TimelineCtrl.js +++ b/www/js/TimelineCtrl.js @@ -276,6 +276,7 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla console.log ("*********************** TIMELINE MAIN "); + // maxItems will be ignored during timeline draw if its desktop var maxItems = zm.graphItemMax; // THAT magic # --> 300 and ZM on my m/c cries $scope.maxItems = maxItems; $scope.graphLoaded = false; @@ -496,7 +497,7 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla for (var j = 0; j < data.length; j++) { var myevents = data[j]; - if (graphIndex > zm.graphItemMax) { + if (graphIndex > zm.graphItemMax && $rootScope.platformOS != "desktop") { ZMDataModel.zmLog("Exiting page count graph - reached limit of " + zm.graphItemMax); break; @@ -555,7 +556,7 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla - if (graphIndex > zm.graphItemMax) { + if (graphIndex > zm.graphItemMax && $rootScope.platformOS != "desktop") { ZMDataModel.zmLog("Exiting event graph - reached limit of " + zm.graphItemMax); break; diff --git a/www/templates/timeline.html b/www/templates/timeline.html index c3633b72..71071098 100644 --- a/www/templates/timeline.html +++ b/www/templates/timeline.html @@ -26,7 +26,8 @@ <ion-content> <div style="padding-left:15px; font-size:10px; color:grey"> - {{prettify(fromDate)}} - {{prettify(toDate)}} (only displaying last {{maxItems}} events) + {{prettify(fromDate)}} - {{prettify(toDate)}} + <span ng-show="$root.platformOS!='desktop'">(only displaying last {{maxItems}} events)</span> </div> <div ng-if="!graphLoaded"> |
