Skip to content

Commit

Permalink
Website: Fix theme selection on Download page, when theme is in query…
Browse files Browse the repository at this point in the history
… string or hash.
  • Loading branch information
Golmote committed Apr 5, 2018
1 parent 46468f8 commit b4d3063
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions download.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ if (hstr) {
delete components[category][id].option;
}
}
if (category === 'themes' && ids.length) {
var themeInput = $('#theme input[value="' + ids[0] + '"]');
if (themeInput) {
themeInput.checked = true;
}
setTheme(ids[0]);
}
ids.forEach(function(id) {
if (id !== 'meta') {
if (components[category][id]) {
Expand Down

0 comments on commit b4d3063

Please sign in to comment.