From 6829dfaec2c6c09034ad583dd81d468ab5616d1d Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 27 Jun 2016 18:38:01 +0000 Subject: [PATCH] fix creation of file rule --- webif/plugin/sweeper/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webif/plugin/sweeper/script.js b/webif/plugin/sweeper/script.js index 11aade4..4709719 100644 --- a/webif/plugin/sweeper/script.js +++ b/webif/plugin/sweeper/script.js @@ -347,6 +347,8 @@ function addrule(id, data) data.type = 'recurse'; data.depth = 1; } + else if (data.type == 'file') + data.depth = 0; rule.find('span.comment').html(data.name); switch (data.type)