Browse Source

Added possible improvement for mobile downloads

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

Loading…
Cancel
Save