Commit 2f588b4f by Georgina Mondino

Merge branch 'Geo' of http://git.anacsoft.com/Lusho/mini-web into Geo

2 parents 6d66d30a c5247537
......@@ -2,22 +2,26 @@
* Armado de formulario
*/
function removeField(b){
let div = b.parentElement;
let tab = div.parentElement;
tab.removeChild(div);
while(b.getAttribute("name") == "Field") b = b.parentElement;
if(b.nodeElement == "body") return;
b.parentElement.removeChild(b);
}
function addField(b){
let newfield = document.createElement("div");
newfield.setAttribute("name","Field");
newfield.innerHTML = document.getElementById("fieldTemplate").innerHTML;
b.parentElement.appendChild(newfield);
let tab = b.parentElement;
// swap
tab.removeChild(b);
tab.appendChild(newfield);
tab.appendChild(b);
}
function removeTab(b){
let div = b.parentElement;
let tab = div.parentElement;
tab.removeChild(div);
while(b.getAttribute("name") == "Tab") b = b.parentElement;
if(b.nodeElement == "body") return;
b.parentElement.removeChild(b);
}
function addTab(t){
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!