Compare commits
3 Commits
ac952b6906
...
be440684b3
Author | SHA1 | Date | |
---|---|---|---|
be440684b3 | |||
80d30a8e54 | |||
0c3e74f8a3 |
@ -19,6 +19,20 @@
|
||||
$: isTracklengthValid = tracklength <= 0;
|
||||
$: trackMintimevalid = track_min_duration >= 0;
|
||||
$: 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() {
|
||||
if (processed_last_submit === true) {
|
||||
processed_last_submit = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user