Fixed open doc without preview

This commit is contained in:
Igor Zhukov 2014-11-11 13:55:22 +03:00
parent be7c2e94c9
commit b20e5de5c4

View File

@ -209,7 +209,7 @@ angular.module('myApp.directives', ['myApp.filters'])
}; };
$scope.docOpen = function () { $scope.docOpen = function () {
if (!$scope.document.withPreview) { if (!$scope.document.withPreview) {
return $scope.download(); return $scope.docSave();
} }
AppDocsManager.openDoc($scope.document.id, $scope.messageId); AppDocsManager.openDoc($scope.document.id, $scope.messageId);
}; };