Files
pics/gulp/res/js/hidefileinput.js
Thomas Lynch 4dc4ba0c92 start on adding custom banners
models and controllers arent done, things wont work yet.
added a migration and updated the template.js with some new needed values,
changed "banners" in manage to "assets" since it will hold both now
refactor the banners file form into a mixin since its basically repeated for flags,
and make it a tad more customisable
2021-03-12 09:55:42 +00:00

9 lines
402 B
JavaScript

document.querySelectorAll('input[type="file"]').forEach(fileInput => {
//not using display: none because we still want to show the browser prompt for a "required" file
fileInput.style.position = 'absolute';
fileInput.style.border = 'none';
fileInput.style.height = '1px';
fileInput.style.width = '1px';
// fileInput.style.opacity = '0'; // same effect as display:none in some browsers, ugh...
});