summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/wwwroot/Content/js/log-parser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/wwwroot/Content/js/log-parser.js')
-rw-r--r--src/SMAPI.Web/wwwroot/Content/js/log-parser.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/js/log-parser.js b/src/SMAPI.Web/wwwroot/Content/js/log-parser.js
index 0c654205..e87a1a5c 100644
--- a/src/SMAPI.Web/wwwroot/Content/js/log-parser.js
+++ b/src/SMAPI.Web/wwwroot/Content/js/log-parser.js
@@ -69,6 +69,13 @@ smapi.logParser = function (data, sectionUrl) {
updateModFilters();
},
+ toggleSection: function (name) {
+ if (!data.enableFilters)
+ return;
+
+ this.showSections[name] = !this.showSections[name];
+ },
+
showAllMods: function () {
if (!data.enableFilters)
return;
@@ -95,6 +102,10 @@ smapi.logParser = function (data, sectionUrl) {
filtersAllow: function(modId, level) {
return this.showMods[modId] !== false && this.showLevels[level] !== false;
+ },
+
+ sectionsAllow: function (section) {
+ return this.showSections[section] !== false;
}
}
});