Merge commit '80d30a8e5425f4041e79c299095c36386b8d7777' into dev
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
close #26
This commit is contained in:
commit
be440684b3
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user