Merge commit '80d30a8e5425f4041e79c299095c36386b8d7777' into dev
All checks were successful
continuous-integration/drone/push Build is passing

close #26
This commit is contained in:
Philipp Dormann 2021-01-07 20:24:44 +01:00
commit be440684b3

View File

@ -19,6 +19,20 @@
$: isTracklengthValid = tracklength <= 0; $: isTracklengthValid = tracklength <= 0;
$: trackMintimevalid = track_min_duration >= 0; $: trackMintimevalid = track_min_duration >= 0;
$: createbtnenabled = !isTracknameValid && !isTracklengthValid; $: createbtnenabled = !isTracknameValid && !isTracklengthValid;
(function () {
document.onkeydown = function (e) {
e = e || window.event;
if (e.key === "Escape") {
modal_open = false;
}
if (e.keyCode === 13) {
if (createbtnenabled === true) {
createbtnenabled = false;
submit();
}
}
};
})();
function submit() { function submit() {
if (processed_last_submit === true) { if (processed_last_submit === true) {
processed_last_submit = false; processed_last_submit = false;