bebeboutik/modules/blocklinkmulti2/blocklink.js

19 lines
683 B
JavaScript
Raw Normal View History

2016-01-04 12:49:26 +01:00
function linkEdition(linkId)
{
getE('id').value = linkId;
getE('newWindow').checked = links[linkId]["newWindow"];
var beg = parseInt(getE('languageFirst').value);
for (var i = 0; i <= parseInt(getE('languageNb').value - 1); i++) {
getE('textInput_'+ (beg + i)).value = links[linkId]["text_"+(beg + i)];
getE('urlInput_'+ (beg + i)).value = links[linkId]["url_"+(beg + i)];
}
getE('submitLinkUpdate').disabled = '';
getE('submitLinkUpdate').setAttribute('class', 'button');
/* ##### IE */
getE('submitLinkUpdate').setAttribute('className', 'button');
}
function linkDeletion(linkId)
{
document.location.replace(currentUrl+'&id='+linkId+'&token='+token);
}