Browse Source

Added possible improvement for mobile downloads

master
Igor Zhukov 11 years ago
parent
commit
164e44618a
  1. 4
      app/js/lib/ng_utils.js

4
app/js/lib/ng_utils.js

@ -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)

Loading…
Cancel
Save