Added possible improvement for mobile downloads

This commit is contained in:
Igor Zhukov 2014-06-30 19:37:51 +04:00
parent 64b712e25b
commit 164e44618a

View File

@ -256,6 +256,10 @@ angular.module('izhukov.utils', [])
} }
function downloadFile (url, mimeType, fileName) { function downloadFile (url, mimeType, fileName) {
// if (Config.Navigator.mobile) {
// window.open(url, '_blank');
// return;
// }
var anchor = $('<a>Download</a>') var anchor = $('<a>Download</a>')
.css({position: 'absolute', top: 1, left: 1}) .css({position: 'absolute', top: 1, left: 1})
.attr('href', url) .attr('href', url)