luci-app-unbound: Stat Scroll Behavior
authorJimMatthew <[email protected]>
Mon, 11 Aug 2025 03:33:06 +0000 (22:33 -0500)
committerPaul Donald <[email protected]>
Thu, 18 Sep 2025 12:37:19 +0000 (14:37 +0200)
Don't scroll to bottom of text area for stats on every poll.
Signed-off-by: JimMatthew <[email protected]>
applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/status.js

index 84efced65ef9a0a720d4371069b3774a27226ba6..49e1a47e7d2b5dd9c7537525510212df91f734af 100644 (file)
@@ -44,7 +44,6 @@ return view.extend({
                                return L.resolveDefault(fs.exec_direct('/usr/sbin/unbound-control', ['-c', '/var/lib/unbound/unbound.conf', 'stats_noreset'])).then(function(res) {
                                        const stats = document.getElementById("stats");
                                        stats.value = res ? res.trim() : _('No stats yet!');
-                                       stats.scrollTop = stats.scrollHeight;
                                });
                        });
                        // Local Data