diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-05-15 20:51:28 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-13 15:49:34 -0400 |
commit | 77f85a701a1487539e1c54a4a7d7f92d58f99cc9 (patch) | |
tree | e75732556346cea210832536f2d88431cda6975e /src/SMAPI.Web/wwwroot | |
parent | 8595a2a6faffe7af81c6401cd6308f84fbefdd01 (diff) | |
download | SMAPI-77f85a701a1487539e1c54a4a7d7f92d58f99cc9.tar.gz SMAPI-77f85a701a1487539e1c54a4a7d7f92d58f99cc9.tar.bz2 SMAPI-77f85a701a1487539e1c54a4a7d7f92d58f99cc9.zip |
update mod list filters to always display clicked mod link
Diffstat (limited to 'src/SMAPI.Web/wwwroot')
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/js/mods.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/js/mods.js b/src/SMAPI.Web/wwwroot/Content/js/mods.js index 874fbf25..1c9562bb 100644 --- a/src/SMAPI.Web/wwwroot/Content/js/mods.js +++ b/src/SMAPI.Web/wwwroot/Content/js/mods.js @@ -87,8 +87,6 @@ smapi.modList = function (mods, enableBeta) { else delete data.filters.betaStatus; - window.boop = data.filters; - // init mods for (var i = 0; i < data.mods.length; i++) { var mod = mods[i]; @@ -188,6 +186,10 @@ smapi.modList = function (mods, enableBeta) { matchesFilters: function(mod, searchWords) { var filters = data.filters; + // check hash + if (location.hash === "#" + mod.Slug) + return true; + // check source if (!filters.source.value.open.value && mod.SourceUrl) return false; @@ -281,4 +283,7 @@ smapi.modList = function (mods, enableBeta) { } }); app.applyFilters(); + window.addEventListener("hashchange", function () { + app.applyFilters(); + }); }; |