dragSrcEl.innerHTML = this.innerHTML;
this.innerHTML = e.dataTransfer.getData('text/html');
save();
+ menu();
}
return false;
}
} else {
addItem(r, li);
}
- }, false);
+ }, true);
}
function addItem(caller, li) {
span.onmouseout = function() {
this.style.background = hoverbg2;
};
+ menu(); // TODO fix bug where form save button loses its eventlistener after generating form for another column twice
fields = document.querySelector("#"+id+" .new .name");
fields.focus();
}
function menu() {
+ // Update event listeners for all items, their remove buttons, and the add button for each column
var allUserLi = document.querySelectorAll('.remove, .add');
allUserLi.forEach(function(li, p_index){