diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-03-10 01:51:13 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-03-10 01:51:13 -0500 |
commit | 563eb26487113d69421e16ad08d115c0e41c00a7 (patch) | |
tree | 9a0657231e20f1c4270d0645b2f50c1f3002cce4 /src/SMAPI.Web/wwwroot/Content/js | |
parent | 810be1fbc71c7808dbdfc5210eb8816d0ad21110 (diff) | |
parent | f836caec3391d1f2e583ee1df6fcaafd284c796d (diff) | |
download | SMAPI-563eb26487113d69421e16ad08d115c0e41c00a7.tar.gz SMAPI-563eb26487113d69421e16ad08d115c0e41c00a7.tar.bz2 SMAPI-563eb26487113d69421e16ad08d115c0e41c00a7.zip |
Merge pull request #626 from danvolchek/log-parser-sections
Add sections to the log parser
Diffstat (limited to 'src/SMAPI.Web/wwwroot/Content/js')
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/js/log-parser.js | 11 |
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; } } }); |