diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-18 20:17:42 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-18 20:17:42 -0500 |
| commit | bbc3026a02f5964e9c3fe8370cf49f1e14fab97e (patch) | |
| tree | d32a28944faf03a14531c182140bc955920441ff | |
| parent | 81799dd18fd2f369c316f2b0b0d9cc7b09753284 (diff) | |
fixed jshint typo
| -rw-r--r-- | www/js/MomentCtrl.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js index 60b78c5a..2c5f867e 100644 --- a/www/js/MomentCtrl.js +++ b/www/js/MomentCtrl.js @@ -343,7 +343,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ $scope.modal.show(); }); - } + }; function humanizeTime(str) { //console.log ("Time:"+str+" TO LOCAL " + moment(str).local().toString()); @@ -505,7 +505,9 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ moments = objSort(moments, [sortCondition, ascordesc], ["dateObject", true]); } - if (moments.length && !moments[0].Event.MaxScoreFramed) { + // check the very first element for presence of maxscoreframe id + // if its not there, we can't show snuff + if (moments.length && !moments[0].Event.MaxScoreFrameId) { $ionicPopup.alert({ title: $translate.instant('kNote'), template: "{{'kApiUpgrade' | translate }}", |
