]> ruin.nu Git - ndwebbie.git/blobdiff - raid.js
most of the raids stuff implemented
[ndwebbie.git] / raid.js
diff --git a/raid.js b/raid.js
index 5a4eb14d97929b9c0c29ec13e51323e5e2bcc510..31e2774667176b2ef0cf28322c305cdca1a339bd 100644 (file)
--- a/raid.js
+++ b/raid.js
@@ -86,9 +86,9 @@ function updateClaims(dataSource,xmldoc,timestamp){
                obj.innerHTML = '';
                var waves = targets[i].getElementsByTagName("wave");;
                for (var j = 0; j < waves.length; j++){
-                       var command = waves[j].firstChild.nextSibling;
-                       var claimers = command.nextSibling;
-                       var joinable = claimers.nextSibling;
+                       var command = waves[j].getElementsByTagName("command")[0];
+                       var claimers = waves[j].getElementsByTagName("claimers")[0];
+                       var joinable = waves[j].getElementsByTagName("joinable")[0];
                        var wave = waves[j].attributes.getNamedItem("id").nodeValue;
                        command = command.firstChild.nodeValue;
                        if(claimers.firstChild){
@@ -112,7 +112,7 @@ function updateClaims(dataSource,xmldoc,timestamp){
                                }*/
                                obj.appendChild(b);
                        }
-                       if (command == 'unclaim'){
+                       if (command == 'Unclaim'){
                                var b = document.createElement("input");
                                b.type = 'button';
                                b.value = 'J';