INNER CODE UNIT · JavaScript
attributeIndex
aelassas/wexflow · samples/WexflowTesting/UglifyJs_src/wexflow-designer.js:665
var attributeIndex = task.Settings[settingIndex].Attributes.length - 1;
var wfAttributeName = wfAttributesTable.getElementsByClassName("wf-attribute-name")[attributeIndex];
wfAttributeName.onkeyup = function () {
var index2 = getElementIndex(wfAttributeName.parentElement.parentElement);
task.Settings[settingIndex].Attributes[index2].Name = wfAttributeName.value;
};
var wfAttributeValue = wfAttributesTable.getElementsByClassName("wf-attribute-value")[attributeIndex];
wfAttributeValue.onkeyup = function () {
var index2 = getElementIndex(wfAttributeValue.parentElement.parentElement);
task.Settings[settingIndex].Attributes[index2].Value = wfAttributeValue.value;
};
// Remove event
var wfRemoveAttribute = wfAttributesTable.getElementsByClassName("wf-remove-attribute")[attributeIndex];
wfRemoveAttribute.onclick = function () {
removeAttribute(workflowId, this);
//attributeIndex--;