diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-17 12:30:27 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-17 12:30:27 -0500 |
| commit | 6460992ab3341423fb44ffd4e3318f00fdc80ec2 (patch) | |
| tree | bdda29a1e3796f4b8240b7d0c819fe8ddefc2797 /www/js/EventCtrl.js | |
| parent | a969c52e1200526eca1c1287159ab83acf7627a0 (diff) | |
#570 inital framework for 24 hr moment
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 13 |
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', { |
