mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
fix current track in queue auto scroll position
- add another inner container to limit the offset - auto scroll current track to container start - add todo file
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="submit">
|
||||
<input type="submit" class="rounded" value="Update" />
|
||||
<input type="submit" id="updateplaylistsubmit" class="rounded" value="Update" @click="" />
|
||||
</div>
|
||||
</form>
|
||||
</template>
|
||||
@@ -98,8 +98,19 @@ function handleFile(file: File) {
|
||||
image = file;
|
||||
}
|
||||
|
||||
let clicked = false;
|
||||
|
||||
function update_playlist(e: Event) {
|
||||
e.preventDefault();
|
||||
|
||||
if (!clicked) {
|
||||
clicked = true;
|
||||
const elem = document.getElementById("updateplaylistsubmit") as HTMLFormElement
|
||||
elem.value = "Updating"
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
const form = e.target as HTMLFormElement;
|
||||
const formData = new FormData(form);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user