autocore: sync with official codes

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2021-03-13 23:45:14 +08:00
parent cc5d55ee44
commit 5fd6f9b40c
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 4 additions and 3 deletions

View File

@ -90,7 +90,7 @@ return baseclass.extend({
var table = E('table', { 'class': 'table' });
for (var i = 0; i < fields.length; i += 2) {
table.appendChild(E('div', { 'class': 'tr' }, [
table.appendChild(E('tr', { 'class': 'tr' }, [
E('td', { 'class': 'td left', 'width': '33%' }, [ fields[i] ]),
E('td', { 'class': 'td left' }, [ (fields[i + 1] != null) ? fields[i + 1] : '?' ])
]));

View File

@ -1,4 +1,5 @@
'use strict';
'require baseclass';
'require fs';
'require rpc';
@ -27,7 +28,7 @@ var callCPUUsage = rpc.declare({
method: 'getCPUUsage'
});
return L.Class.extend({
return baseclass.extend({
title: _('System'),
load: function() {
@ -89,7 +90,7 @@ return L.Class.extend({
var table = E('table', { 'class': 'table' });
for (var i = 0; i < fields.length; i += 2) {
table.appendChild(E('div', { 'class': 'tr' }, [
table.appendChild(E('tr', { 'class': 'tr' }, [
E('td', { 'class': 'td left', 'width': '33%' }, [ fields[i] ]),
E('td', { 'class': 'td left' }, [ (fields[i + 1] != null) ? fields[i + 1] : '?' ])
]));