luci-app-adblock: refresh report data on page load
authorDirk Brenken <dev@brenken.org>
Sat, 11 Apr 2020 18:35:06 +0000 (20:35 +0200)
committerDirk Brenken <dev@brenken.org>
Sat, 11 Apr 2020 18:42:52 +0000 (20:42 +0200)
* refresh report data on page load (without hitting
  the refresh button explicity)

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit bfcd962ffd211521e91a875e60ef897335de1fc0)

applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js

index 58a6dbe1a96b4e8258ded72867541e8a4c79b571..1413f842c563f0c4953d4032e9960b210fa0798f 100644 (file)
@@ -188,7 +188,7 @@ function handleAction(ev) {
 
 return L.view.extend({
        load: function() {
-               return L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['report', '+', '50', 'false', 'json']),'');
+               return L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['report', '+', '50', 'true', 'json']),'');
        },
 
        render: function(dnsreport) {