Skip to content

Commit 106d812

Browse files
Test connection button fixes
1 parent 1ed3f71 commit 106d812

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/templates/settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3>DirectAdmin Configuration</h3>
2929

3030
<div class="form-actions">
3131
<button type="submit" class="btn-primary">Save Settings</button>
32-
<button type="button" onclick="testConnection()" class="btn-secondary">Test Connection</button>
32+
<button type="button" onclick="testConnection(event)" class="btn-secondary">Test Connection</button>
3333
</div>
3434

3535
<p class="help-text">

static/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ document.getElementById('new_domain').addEventListener('keypress', (e) => {
254254

255255

256256
// Test connection function - COMPLETELY SEPARATE
257-
async function testConnection() {
257+
async function testConnection(event) {
258258
console.log('testConnection called');
259259
const testButton = event.target;
260260
const originalText = testButton.textContent;

0 commit comments

Comments
 (0)