Skip to content

Commit 00f5369

Browse files
committed
use append instead of dedicated output div
1 parent 2c7eb44 commit 00f5369

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

webroot/panel/modal/new_key.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
<input type="hidden" name="gen_key" />
5151
<button type="button" class="btnLin">OpenSSH</button>
5252
<button type="button" class="btnWin">PuTTY</button>
53-
<div id="key_generate_error_output"></div>
5453
</div>
5554

5655
<div style="display: none;" id="key_github">
@@ -79,8 +78,7 @@ function generateKey(type) {
7978
$("#newKeyform").submit();
8079
},
8180
error: function (result) {
82-
$("#key_generate_error_output").html(result.responseText);
83-
$("#key_generate_error_output").show();
81+
$("#key_generate").append(result.responseText);
8482
},
8583
});
8684
}

0 commit comments

Comments
 (0)