summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 26d47d33..2bfb18ff 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -2771,7 +2771,20 @@ angular.module('zmApp.controllers')
$scope.showThumbnail = function (b,f) {
+ if (!f) {// api update needed
+ $ionicPopup.alert(
+ {
+ title: $translate.instant('kNote'),
+ template: "{{'kApiUpgrade' | translate }}",
+ okText: $translate.instant('kButtonOk'),
+ cancelText: $translate.instant('kButtonCancel'),
+ });
+ return;
+
+ }
+
+
$scope.thumbnailLarge=b+'/index.php?view=image&fid='+f;
$ionicModal.fromTemplateUrl('templates/image-modal.html',
{