From 473556b1d8a0ad23d0b9aec02608cc3a17ad0752 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 27 Jun 2014 23:14:42 +0400 Subject: [PATCH] Allow to download single photos --- app/js/controllers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 94db84ba..4d3343d1 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -1258,6 +1258,10 @@ angular.module('myApp.controllers', []) $scope.photo = AppPhotosManager.wrapForFull($scope.photoID); $scope.nav = {}; + $scope.download = function () { + AppPhotosManager.downloadPhoto($scope.photoID); + }; + if (!$scope.messageID || Config.Navigator.mobile) { $scope.nav.next = function () { $modalInstance.close(); @@ -1280,10 +1284,6 @@ angular.module('myApp.controllers', []) }; - $scope.download = function () { - AppPhotosManager.downloadPhoto($scope.photoID); - }; - if (Config.Navigator.mobile) { $scope.canForward = true; return;