[Proto-Scripty] Re: Confirm() happening twice on click.

2012-07-16 Thread Victor
> > My problem is that after the confirm() UI appears and is clicked, it > appears AGAIN, then when I click again does the expected behaviour occur. > > document.observe("dom:loaded", function() { > // attach to all delete links in the table > var dels = $$('td a.delete'); > dels.each(funct

[Proto-Scripty] Re: Confirm() happening twice on click.

2012-07-16 Thread thinsoldier
I've actually found the cause of my problem. Quite foolish of me. I had earlier experimented with having all my javascript after the footer of the page rather than in the . So I had 2 instances of the script tag that contained this code on 1 page. I am grateful to everyone for their help. I lea

Re: [Proto-Scripty] Re: Confirm() happening twice on click.

2012-07-16 Thread Phil Petree
At least by half ;-) On Jul 16, 2012 11:59 AM, "thinsoldier" wrote: > I've actually found the cause of my problem. > Quite foolish of me. I had earlier experimented with having all my > javascript after the footer of the page rather than in the . So I had > 2 instances of the script tag that cont