Files
haproxy-dashboard/static/js/edit.js
Mateusz Gruszczyński e86b71cf4c redactor
2025-11-01 22:06:59 +01:00

10 lines
278 B
JavaScript

(() => {
'use strict';
const ta = document.getElementById('haproxy_config');
if (!ta) return;
// Auto-grow (simple)
const auto = () => { ta.style.height = 'auto'; ta.style.height = (ta.scrollHeight + 6) + 'px'; };
ta.addEventListener('input', auto);
auto();
})();