diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-18 15:09:44 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-18 15:09:44 -0500 |
| commit | 81799dd18fd2f369c316f2b0b0d9cc7b09753284 (patch) | |
| tree | 1a7201f6fe3366b8c177f4b92c7b95676b8359f1 /www/js/MomentCtrl.js | |
| parent | b2aa6963a5a3fdcc8023134569719490c844f39a (diff) | |
#570 added API upgrade warning for full feature
Diffstat (limited to 'www/js/MomentCtrl.js')
| -rw-r--r-- | www/js/MomentCtrl.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js index a52e5466..60b78c5a 100644 --- a/www/js/MomentCtrl.js +++ b/www/js/MomentCtrl.js @@ -505,11 +505,24 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ moments = objSort(moments, [sortCondition, ascordesc], ["dateObject", true]); } - $scope.moments = moments; + if (moments.length && !moments[0].Event.MaxScoreFramed) { + $ionicPopup.alert({ + title: $translate.instant('kNote'), + template: "{{'kApiUpgrade' | translate }}", + okText: $translate.instant('kButtonOk'), + cancelText: $translate.instant('kButtonCancel'), + }); + } + + else { + $scope.moments = moments; $timeout(function () { initMasonry(); }, 300); + } + + /* if (sortCondition == "MonitorId") { moments.sort(function(a, b) { var da = a.Event.MonitorId; |
