mirror of
https://github.com/bryangerlach/rdgen.git
synced 2025-11-29 00:23:27 +00:00
fix non-resized images
This commit is contained in:
@@ -87,10 +87,10 @@
|
|||||||
{{ form.theme }} {{ form.themeDorO }} *Default sets the theme but allows the client to change it, Override sets the theme permanently.<br><br>
|
{{ form.theme }} {{ form.themeDorO }} *Default sets the theme but allows the client to change it, Override sets the theme permanently.<br><br>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('id_iconfile').addEventListener('change', function(event) {
|
document.getElementById("{{ form.iconfile.id_for_label }}").addEventListener('change', function(event) {
|
||||||
previewImage(event.target, 'icon-preview');
|
previewImage(event.target, 'icon-preview');
|
||||||
});
|
});
|
||||||
document.getElementById('id_logofile').addEventListener('change', function(event) {
|
document.getElementById("{{ form.logofile.id_for_label }}").addEventListener('change', function(event) {
|
||||||
previewImage(event.target, 'logo-preview');
|
previewImage(event.target, 'logo-preview');
|
||||||
});
|
});
|
||||||
function previewImage(input, previewContainerId) {
|
function previewImage(input, previewContainerId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user