Skip to content

Commit

Permalink
Merge pull request #3850 from IgniteUI/ie-dropdown-rendering-7.1.x
Browse files Browse the repository at this point in the history
IE dropdown rendering 7.1.x
  • Loading branch information
zdrawku authored Feb 7, 2019
2 parents c2214b0 + 8a80c3a commit eeb390b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@
xhrFields: {
withCredentials: false
}
}).done((data) => {
}).done(function (data) {
let folders = data.folders;
const select = $('#versions');
folders = folders.reverse();

folders.forEach(f => {
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);
}
});

$('#versions').on('change', (...rest) => {
$('#versions').on('change', function () {
const val = $('#versions').val();
sessionStorage.sassOption = val;
window.location.assign(val);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@
xhrFields: {
withCredentials: false
}
}).done((data) => {
}).done(function (data) {
let folders = data.folders;
const select = $('#versions')
folders = folders.reverse();

folders.forEach(f => {
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);
}
});

$('#versions').on('change', (...rest) => {
$('#versions').on('change', function () {
const val = $('#versions').val();
sessionStorage.typedocOption = val;
window.location.assign(val);
Expand Down

0 comments on commit eeb390b

Please sign in to comment.