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.
Options

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

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

    onlick
    $('.PreviewButton').attr("disabled", 'disabled');
    onsuccess
    $('.PreviewButton').removeAttr('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
    Testing...

    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 http://vanillaforums.org/vanilla/post/comment/13230 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.