|
|
@@ -350,10 +350,16 @@
|
|
|
}
|
|
|
|
|
|
function showTypeConfig() {
|
|
|
- document.querySelectorAll('.type-cfg').forEach(el => el.classList.add('hidden'));
|
|
|
+ document.querySelectorAll('.type-cfg').forEach(el => {
|
|
|
+ el.classList.add('hidden');
|
|
|
+ el.querySelectorAll('input, select, textarea').forEach(f => f.disabled = true);
|
|
|
+ });
|
|
|
const type = document.getElementById('job-type').value;
|
|
|
const el = document.getElementById('cfg-' + type);
|
|
|
- if (el) el.classList.remove('hidden');
|
|
|
+ if (el) {
|
|
|
+ el.classList.remove('hidden');
|
|
|
+ el.querySelectorAll('input, select, textarea').forEach(f => f.disabled = false);
|
|
|
+ }
|
|
|
if (type === 'mysql' || type === 'postgresql') loadDatabases(type);
|
|
|
}
|
|
|
|