summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/wwwroot/Content/js
diff options
context:
space:
mode:
authordanvolchek <volchek2@illinois.edu>2019-03-09 18:20:02 -0600
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-03-10 01:40:58 -0500
commit6cd7e11c1020c40f223dee70a7dd7b2c66296918 (patch)
treee70efb856ec211faf338c347fea11f11c36ab37e /src/SMAPI.Web/wwwroot/Content/js
parent810be1fbc71c7808dbdfc5210eb8816d0ad21110 (diff)
downloadSMAPI-6cd7e11c1020c40f223dee70a7dd7b2c66296918.tar.gz
SMAPI-6cd7e11c1020c40f223dee70a7dd7b2c66296918.tar.bz2
SMAPI-6cd7e11c1020c40f223dee70a7dd7b2c66296918.zip
add log sections implementation
Diffstat (limited to 'src/SMAPI.Web/wwwroot/Content/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;
}
}
});