summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-12-02 11:45:22 -0500
committerPliable Pixels <pliablepixels@gmail.com>2016-12-02 11:45:22 -0500
commit724fec3a208e7f42ed9e657740484b3b6be9f27e (patch)
tree69c97589517c9580abe2a6c2de3837b664fa0d79 /www/js/EventCtrl.js
parent0122e6656bc54fb94db29dfd99f268c49e6e16de (diff)
if running crosswalk, disable this feature (doesn't work) #398
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js30
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}}"
+ });
+ }
+
}