summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js
index 45b483962d..aad0383646 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js
@@ -38,7 +38,7 @@ return view.extend({
}, _('Scroll to tail', 'scroll to bottom (the tail) of the log file')
);
scrollDownButton.addEventListener('click', function() {
- scrollUpButton.focus();
+ scrollUpButton.scrollIntoView();
});
var scrollUpButton = E('button', {
@@ -47,7 +47,7 @@ return view.extend({
}, _('Scroll to head', 'scroll to top (the head) of the log file')
);
scrollUpButton.addEventListener('click', function() {
- scrollDownButton.focus();
+ scrollDownButton.scrollIntoView();
});
return E([], [