summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/wwwroot/Content/js/log-parser.js
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-03-17 21:55:38 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-03-17 21:55:38 -0400
commit013255d89e1a802e05f9fd61a16701ca73fa4411 (patch)
tree684714b18faba6d4413a106f885bcba18a2e5edb /src/SMAPI.Web/wwwroot/Content/js/log-parser.js
parent10c7192bb9f06ff96b9b98a812d9f72a8d77ac76 (diff)
parent4a494c67bdfe2c07ef5c49c55541a0f6e29627cf (diff)
downloadSMAPI-013255d89e1a802e05f9fd61a16701ca73fa4411.tar.gz
SMAPI-013255d89e1a802e05f9fd61a16701ca73fa4411.tar.bz2
SMAPI-013255d89e1a802e05f9fd61a16701ca73fa4411.zip
Merge branch 'develop' into stable
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;
}
}
});