return $self->generateClaimXml($BODY,$raid,$from);
}
if ($self->{XML} && param('cmd') eq 'gettargets' ){
- $_ = listTargets();
+ $_ = $self->listTargets();
$BODY->param(TargetList => $_);
}
push @targets,{Coords => $coords, Launched => $target->{launched}, Raid => $target->{raid}
, Target => $target->{id}, Tick => $target->{landingtick}, Wave => $target->{wave}
, AJAX => $self->{AJAX}, JoinName => $target->{joinable} ? 'N' : 'J'
- , Joinable => $target->{joinable} ? 'FALSE' : 'TRUE'};
+ , Joinable => $target->{joinable} ? 'FALSE' : 'TRUE', JoinableTitle => $target->{joinable} ? 'Disable join' : 'Make target joinable'};
}
my $template = HTML::Template->new(filename => "templates/targetlist.tmpl", cache => 1);
$template->param(Targets => \@targets);
var b = document.createElement("input");
b.type = 'button';
b.value = 'J';
+ b.title = 'Make target joinable';
command = 'set&joinable=TRUE';
if (joinable == 1){
b.value = 'N';
+ b.title = 'Disable join';
command = 'set&joinable=FALSE';
}
b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
<TMPL_VAR NAME=Tick></a></td>
<td><TMPL_UNLESS AJAX><a href="raids?raid=<TMPL_VAR NAME=Raid>&cmd=Unclaim&target=<TMPL_VAR NAME=Target>&wave=<TMPL_VAR NAME=Wave>" >U</a>
<TMPL_ELSE>
- <input type="button" value="U" class="small" onclick =
+ <input title="Unclaim target" type="button" value="U" class="small" onclick =
"claim('raids?xml=1&raid=<TMPL_VAR NAME=Raid>',<TMPL_VAR NAME=Target>,<TMPL_VAR NAME=Wave>,'Unclaim')"/>
- <input type="button" class="small" value="<TMPL_VAR NAME=JoinName>" onclick =
+ <input title="<TMPL_VAR NAME=JoinableTitle>" type="button" class="small" value="<TMPL_VAR NAME=JoinName>" onclick =
"claim('raids?xml=1&raid=<TMPL_VAR NAME=Raid>',<TMPL_VAR NAME=Target>,<TMPL_VAR NAME=Wave>,'set&joinable=<TMPL_VAR NAME=Joinable>')"/>
</TMPL_UNLESS>
</td>