mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Copy the event handlers from "Save As" to the Rename dialog
This commit is contained in:
@ -1300,7 +1300,14 @@ $(document).ready(function(){
|
||||
hide([$(".saveasoverwrite"), $(".popuperror")]);
|
||||
});
|
||||
|
||||
$("#newsavename").on("keydown", function (ev) {
|
||||
$("#newsavename").on("input", function (ev) {
|
||||
if($(this).val() == "") {
|
||||
disableButtons([$("#btn_rensaccept")]);
|
||||
} else {
|
||||
enableButtons([$("#btn_rensaccept")]);
|
||||
}
|
||||
hide([$(".saveasoverwrite"), $(".popuperror")]);
|
||||
}).on("keydown", function (ev) {
|
||||
if (ev.which == 13 && $(this).val() != "") {
|
||||
submit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user