Skip to content

Commit

Permalink
fix(api-dropdown): remove string literals
Browse files Browse the repository at this point in the history
Closes #3815
  • Loading branch information
Aleksandyr committed Feb 7, 2019
1 parent 931720b commit b17abe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
}).done(function (data) {
let folders = data.folders;
const select = $('#versions');
const lastVersion = folders.slice(-1)[0];
folders = folders.reverse();

folders.forEach(function (f) {
select.append($('<option>', {
value: `${baseUrl}/products/ignite-ui-angular/docs/${f}/sass`,
value: baseUrl + "/products/ignite-ui-angular/docs/" + f + "/sass",
text: f
}));
});

select.val(`${baseUrl}/products/ignite-ui-angular/docs/${folders[0]}/sass`);
select.val(baseUrl + "/products/ignite-ui-angular/docs/" + folders[0] + "/sass");

if (sessionStorage.sassOption) {
select.val(sessionStorage.sassOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

folders.forEach(function (f) {
select.append($('<option>', {
value: `${baseUrl}/products/ignite-ui-angular/docs/${f}/typescript`,
value: baseUrl + "/products/ignite-ui-angular/docs/" + f + "/typescript",
text: f
}));
});

select.val(`${baseUrl}/products/ignite-ui-angular/docs/${folders[0]}/typescript`);
select.val(baseUrl + "/products/ignite-ui-angular/docs/" + folders[0] + "/typescript");

if (sessionStorage.typedocOption) {
select.val(sessionStorage.typedocOption);
Expand Down

0 comments on commit b17abe0

Please sign in to comment.