Fixes #1 automatic upload issue
This commit is contained in:
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixes
|
||||
|
||||
* Automatic upload checkbox on upload form #1
|
||||
|
||||
### Added
|
||||
|
||||
* "Today So Far" summary on the success page
|
||||
|
||||
@@ -43,7 +43,7 @@ $this->registerJS(
|
||||
emojiIndex = (emojiIndex + 1) % foodEmojis.length; // Cycle through emojis
|
||||
}, 1100); // Adjust the interval (in milliseconds) for the desired speed
|
||||
|
||||
$('#mealform-picture').on('change', function(ev) {
|
||||
$('#file-input').on('change', function(ev) {
|
||||
if (localStorage.getItem('autoUpload') === 'true') { // Check localStorage
|
||||
$('#submitButton').text('Processing...');
|
||||
$('#submitButton').attr('disabled', true);
|
||||
@@ -115,7 +115,6 @@ $this->registerCssFile('@web/css/upload.css');
|
||||
</div>
|
||||
<div class="d-grid gap-2 d-md-block">
|
||||
<?= Html::submitButton('Save meal!', ['id' => 'submitButton', 'class' => 'btn btn-success']) ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user