Compare commits
No commits in common. "be440684b3da953e19bf9d52c8a65a4d08ee11f8" and "ac952b690660f9d385e68d1c895cfc7c7a53374d" have entirely different histories.
be440684b3
...
ac952b6906
@ -19,20 +19,6 @@
|
|||||||
$: 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user