Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Clicking Preview multiple times quickly produces multiple previews.

ShmizzleShmizzle New
edited October 2010 in Vanilla 2.0 - 2.8
Type a comment, then double/triple/whatever click the Preview button quickly. Multiple previews will be rendered.


  • Options
    I tried four times, as fast as I could, on FF 3.6.10. Not happening for me.
    I haven't looked at the JavaScript behind the preview button, but if this is truly happening to people they might want to do something like:

    $('.PreviewButton').attr("disabled", 'disabled');

  • Options
    It happens for me consistently in FF 3.6.10 (and other browsers). I just tried it on this forum and it happens here, too.
  • Options

    Yep, happens for me here too.
  • Options
    I can experience this too in Chrome & Firefox / Linux.

    @Tim I see two or more requests being sent to with Type = Preview in Firebug. I assume the fix suggested by @Flam should be good enough, right?
  • Options
    @Flam, @cdavid; Exactly where does this js go please..?
Sign In or Register to comment.