From 49856f36361a71aba71c43c77cebb22340010181 Mon Sep 17 00:00:00 2001 From: equinox Date: Fri, 1 Apr 2011 05:42:06 +0200 Subject: initial checkin --- static/details.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 static/details.js (limited to 'static/details.js') diff --git a/static/details.js b/static/details.js new file mode 100644 index 0000000..bd42bb4 --- /dev/null +++ b/static/details.js @@ -0,0 +1,28 @@ + +function add(type) { + var node = document.getElementById("hperson"); + + ntr = document.createElement("tr"); + ntd = document.createElement("td"); + ntxt = document.createTextNode("x"); + ntd.appendChild(ntxt); + ntr.appendChild(ntd); + + node.parentNode.insertBefore(ntr, node); + + window.alert('tag' + node.nodeName); + for (node = node.nextSibling; node != null; node = node.nextSibling) { + window.alert('tag' + node.nodeName); + if (node.nodeName != 'TR') + continue; + var td = node.getElementsByTagName("TD"); + if (td == null) + continue; + var input = td[1].getElementsByTagName("INPUT"); + if (input == null) + continue; + for (var k = 0; k < input.length; k++) + input[k].style.display = 'none'; + } +} + -- cgit v1.2.1