diff options
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index c17071ea..3ff6c1ce 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -1179,14 +1179,30 @@ angular.module('zmApp.controllers') // make sure the user knows the GIF is not full fps/all frames function gifAlert(e) { - $ionicPopup.alert( - { - title: $translate.instant('kNote'), - template: "{{'kGifWarning' | translate }}" - }).then(function() + if(navigator.userAgent.toLowerCase().indexOf('crosswalk') == -1) { + $ionicPopup.confirm( + { + title: $translate.instant('kNote'), + template: "{{'kGifWarning' | translate }}" + }).then(function(res) + { + if (res) + { + downloadAsGif2(e); + } + else + NVRDataModel.debug ("User cancelled GIF"); + + }); + } + else { - downloadAsGif2(e); - }); + $ionicPopup.alert({ + title:$translate.instant ('kNote'), + template:"{{'kGifNoCrosswalk' | translate}}" + }); + } + } |
