Move #newsavename keydown event handler
This commit is contained in:
parent
24d57a7ac3
commit
7e896c98fe
|
@ -614,6 +614,11 @@ function buildLoadList(ar) {
|
||||||
}
|
}
|
||||||
})(name);
|
})(name);
|
||||||
$("#btn_rensaccept").off("click").on("click", submit);
|
$("#btn_rensaccept").off("click").on("click", submit);
|
||||||
|
$("#newsavename").off("keydown").on("keydown", function (ev) {
|
||||||
|
if (ev.which == 13 && $(this).val() != "") {
|
||||||
|
submit();
|
||||||
|
}
|
||||||
|
});
|
||||||
$("#loadcontainerrename").removeClass("hidden").addClass("flex");
|
$("#loadcontainerrename").removeClass("hidden").addClass("flex");
|
||||||
$("#newsavename").val(name).select();
|
$("#newsavename").val(name).select();
|
||||||
}
|
}
|
||||||
|
@ -1317,10 +1322,6 @@ $(document).ready(function(){
|
||||||
enableButtons([$("#btn_rensaccept")]);
|
enableButtons([$("#btn_rensaccept")]);
|
||||||
}
|
}
|
||||||
hide([$(".saveasoverwrite"), $(".popuperror")]);
|
hide([$(".saveasoverwrite"), $(".popuperror")]);
|
||||||
}).on("keydown", function (ev) {
|
|
||||||
if (ev.which == 13 && $(this).val() != "") {
|
|
||||||
submit();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#btn_rensclose").on("click", function () {
|
$("#btn_rensclose").on("click", function () {
|
||||||
|
|
Loading…
Reference in New Issue