fix: [javascript] Fixed JS broken in IE11 #3306

pull/3307/head
Christophe Vandeplas 2018-06-03 09:15:05 +02:00
parent f6ed105249
commit a211f606e3
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ function generate_additional_info(info) {
var to_ret = "\n\nInvolved:\n";
var sel = document.createElement('select');
sel.classList.add('distributionInfo');
for (var i of info) {
for (var i in info) {
var opt = document.createElement('option');
opt.val = i;
opt.innerHTML = i;

View File

@ -1297,7 +1297,7 @@ function choicePopup(legend, list) {
popupHtml += '<div class="popover_choice_main" id ="popover_choice_main">';
popupHtml += '<table style="width:100%;" id="MainTable">';
popupHtml += '<tbody>';
for (var item of list) {
for (var item in list) {
popupHtml += '<tr style="border-bottom:1px solid black;" class="templateChoiceButton">';
popupHtml += '<td role="button" tabindex="0" aria-label="All meta-categories" title="'+item.text+'" style="padding-left:10px;padding-right:10px; text-align:center;width:100%;" onClick="'+item.onclick+';">'+item.text+'</td>';
popupHtml += '</tr>';