]> ruin.nu Git - ndwebbie.git/commitdiff
ie fix
authorMichael Andreen <harv@ruin.nu>
Fri, 15 Dec 2006 15:48:53 +0000 (15:48 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 15 Dec 2006 15:48:53 +0000 (15:48 +0000)
raid.js
raids.pl

diff --git a/raid.js b/raid.js
index 0e2fedc5130aa9170165bc78187aa95d4f68092c..1785d54071f7f9051f248d671fe210a27da31fe1 100644 (file)
--- a/raid.js
+++ b/raid.js
@@ -88,8 +88,8 @@ function update(dataSource){
        }
 }
 
-function updateClaims(dataSource,xmldoc,timestamp){
-       targets = xmldoc.getElementsByTagName("target");
+function updateClaims(dataSource,xmlthingy,timestamp){
+       var targets = xmlthingy.getElementsByTagName("target");
        for (var i = 0; i < targets.length; i++){
                var target = targets[i].attributes.getNamedItem("id").nodeValue;
                var obj = document.getElementById("claim"+target);
@@ -119,7 +119,7 @@ function updateClaims(dataSource,xmldoc,timestamp){
                                b.type = 'button';
                                b.setAttribute("class", command);
                                b.value = command +' wave '+wave+' '+claimers;
-                               b.setAttribute("onClick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"')");
+                               b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
                                /*b.onclick = function(){
                                        claim(dataSource,t,wave,command);
                                }*/
@@ -134,9 +134,10 @@ function updateClaims(dataSource,xmldoc,timestamp){
                                        b.value = 'N';
                                        command = 'set&joinable=FALSE';
                                }
-                               b.setAttribute("onClick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"')");
+                               b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
                                obj.appendChild(b);
                        }
+                       obj.innerHTML = obj.innerHTML; // IE doesn't understand unless you tell it twice
                }
                obj = document.getElementById("coords"+target);
                var coords = targets[i].getElementsByTagName("coords");;
@@ -144,7 +145,7 @@ function updateClaims(dataSource,xmldoc,timestamp){
                        obj.innerHTML = coords[0].firstChild.nodeValue;
        }
        if (timestamp){
-               timestamp = xmldoc.getElementsByTagName("timestamp");
+               timestamp = xmlthingy.getElementsByTagName("timestamp");
                if (timestamp)
                        modified = timestamp[0].firstChild.nodeValue;
        }
index 3d474b59bacc19dafe8b93db3e89ead25738ea2a..672f5aaae79080546493dde8e7b50e7ae255d7de 100644 (file)
--- a/raids.pl
+++ b/raids.pl
@@ -168,7 +168,7 @@ unless ($XML){
        if ($raid){#We have a raid, so list all targets
                $BODY->param(Raid => $raid->{id});
                my $ajax = 1;
-               $ajax = 0 if ($ENV{HTTP_USER_AGENT} =~ /MSIE/);
+               #$ajax = 0 if ($ENV{HTTP_USER_AGENT} =~ /MSIE/);
                $BODY->param(Ajax => $ajax);
                my $noingal = '';
                my $planet;