Moderators: Tech Team, Global Moderators
billval3 wrote:Ishiro,
Thanks for this. Is there a way I can take off the confirm for auto attack? I like the other options, just not that one.
Maybe you could republish the older one as well? Thanks!
(function() {
var inputs = document.getElementsByTagName("input");
for(var a = 0; a < inputs.length; a++) {
if (inputs[a].value == "End Attacks")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "End Fortification")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "Auto-Attack")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
}
})();
alkemann wrote:I downloaded this script based on a reply to a support ticket i posted about the need for an undo button on army placement, as I experienced some unfortunate mishaps that i believe was part me and part system fault. Anyways the reply said I should install this script, but it doesnt do what I need it most to. To show a confirmation dialog when I place armies, telling me what country I am placing on and how many. If it could show on the actual map as well, that would rock.
anyways, if this is possible, it would appreciate it
alek
(function() {
var inputs = document.getElementsByTagName("input");
for(var a = 0; a < inputs.length; a++) {
if (inputs[a].value == "End Attacks")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "End Fortification")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "Auto-Attack")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "Deploy")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
}
})();
johnzam wrote:Is it possible to add a script/line for confirming troop deployment!!
redtide wrote:I'm trying to load the confirmation script at the top, but am getting an error message saying something like "error loading. 404. Ok"
Any idea what's up?

redtide wrote:But I can't even download and install it - it seems like that's a bad link, although I've used it in the past. Any ideas?
Users browsing this forum: No registered users and 2 guests