diff options
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/view')
2 files changed, 6 insertions, 2 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/irq.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/irq.js index f6bac08723..0061c4dfd4 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/irq.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/irq.js @@ -36,6 +36,8 @@ return L.Class.extend({ this.value(m[1], '%s (%s)'.format(m[1], desc || '-')); } + + return this.super('load', [section_id]); }, this)); }; diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js index b3e4f19331..b0704fc722 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/openvpn.js @@ -29,7 +29,9 @@ return L.Class.extend({ return L.resolveDefault(fs.list('/var/run'), []).then(L.bind(function(entries) { for (var i = 0; i < entries.length; i++) if (entries[i].type == 'file' && entries[i].name.match(/^openvpn\..+\.status$/)) - o.value('/var/run/' + entries[i].name); + this.value('/var/run/' + entries[i].name); + + return this.super('load', [section_id]); }, this)); }; }, @@ -38,6 +40,6 @@ return L.Class.extend({ var stats = L.toArray(section.StatusFile); if (stats.length) - return N_(stats.length, 'Monitoring one OpenVPN instance', 'Monitoring %d OpenVPN instancees').format(stats.length); + return N_(stats.length, 'Monitoring one OpenVPN instance', 'Monitoring %d OpenVPN instances').format(stats.length); } }); |