|
|
@ -1960,7 +1960,13 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
apiDoc.file_name = apiDoc.file_name || ''; |
|
|
|
|
|
|
|
|
|
|
|
apiDoc.mime_type = apiDoc.mime_type || ''; |
|
|
|
|
|
|
|
apiDoc.file_name = apiDoc.file_name || 'file'; |
|
|
|
|
|
|
|
if (apiDoc._ == 'documentEmpty') { |
|
|
|
|
|
|
|
apiDoc.file_name = 'DELETED'; |
|
|
|
|
|
|
|
apiDoc.size = 0; |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
function getDoc (docID) { |
|
|
|
function getDoc (docID) { |
|
|
@ -2063,6 +2069,10 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) |
|
|
|
file_name: doc.file_name |
|
|
|
file_name: doc.file_name |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (doc._ == 'documentEmpty') { |
|
|
|
|
|
|
|
return $q.reject(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (historyDoc.downloaded && !toFileEntry) { |
|
|
|
if (historyDoc.downloaded && !toFileEntry) { |
|
|
|
var cachedBlob = MtpApiFileManager.getCachedFile(inputFileLocation); |
|
|
|
var cachedBlob = MtpApiFileManager.getCachedFile(inputFileLocation); |
|
|
|
if (cachedBlob) { |
|
|
|
if (cachedBlob) { |
|
|
|