mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 20:08:05 +08:00
🐶 Sync 2026-10-08 01:07:04
This commit is contained in:
1 parent
31f25ca6cb
commit
ef5af2e0cc
283 files changed
+34710
-16084
No files matched your search
@@ -7,7 +7,7 @@
|
||||
'require view';
|
||||
|
||||
return view.extend({
|
||||
render: function() {
|
||||
render() {
|
||||
/* Thanks to luci-app-aria2 */
|
||||
let css = ' \
|
||||
#log_textarea { \
|
||||
@@ -60,7 +60,8 @@ return view.extend({
|
||||
}, _('Scroll to tail', 'scroll to bottom (the tail) of the log file')
|
||||
);
|
||||
scrollDownButton.addEventListener('click', () => {
|
||||
scrollUpButton.focus();
|
||||
scrollUpButton.scrollIntoView();
|
||||
scrollDownButton.blur();
|
||||
});
|
||||
|
||||
const scrollUpButton = E('button', {
|
||||
@@ -69,7 +70,8 @@ return view.extend({
|
||||
}, _('Scroll to head', 'scroll to top (the head) of the log file')
|
||||
);
|
||||
scrollUpButton.addEventListener('click', () => {
|
||||
scrollDownButton.focus();
|
||||
scrollDownButton.scrollIntoView();
|
||||
scrollUpButton.blur();
|
||||
});
|
||||
|
||||
return E([
|
||||
|
||||
Reference in new issue
Block a user