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.
Tagged:

Comments

  • 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:

    onlick
    $('.PreviewButton').attr("disabled", 'disabled');
    onsuccess
    $('.PreviewButton').removeAttr('disabled');

  • 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.
  • Testing...

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

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