diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-11-05 09:22:28 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-11-05 09:22:28 -0400 |
| commit | 494eaa0d526a1c3ccfa7504152caf62b6d70839b (patch) | |
| tree | 7b3852c278542fa9e215fcc04704c75fe37c643a /www/js/EventCtrl.js | |
| parent | 37d2265f96dfa7020422c19226f0a7001cee5b3d (diff) | |
Seems in some installs, pagecount doesn't come in, which is odd. I'm defaulting to 1.
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index ce5fec93..c076ea4d 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -346,7 +346,7 @@ angular.module('zmApp.controllers') nolangTo = moment($rootScope.toString).locale('en').format("YYYY-MM-DD HH:mm:ss"); NVRDataModel.getEventsPages($scope.id, nolangFrom, nolangTo) .then(function (data) { - eventsPage = data.pageCount; + eventsPage = data.pageCount || 1; NVRDataModel.debug("EventCtrl: found " + eventsPage + " pages of events"); pageLoaded = true; |
