mirror of
https://github.com/luxfi/pics.git
synced 2026-10-30 15:22:15 +00:00
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
9 lines
402 B
JavaScript
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...
|
|
});
|