Loading ...
Sorry, an error occurred while loading the content.

Calendar - Preventing click before double-click

Expand Messages
  • chonlia
    I find a function to prevent click before double-click using window.setTimeout. The problem is i don t know how pass parameters. At calendar.js, doSelectCell:
    Message 1 of 1 , Sep 2, 2007
    • 0 Attachment
      I find a function to prevent click before double-click using
      window.setTimeout.

      The problem is i don't know how pass parameters.

      At calendar.js, doSelectCell:

      click_timer = window.setTimeout
      (YAHOO.widget.Calendar.prototype.doSelectCell(e, cal), 300);

      And at my custom doDblSelectCell:

      window.clearTimeout(click_timer);


      Don't works, because setTimeout crash.

      :-(
    Your message has been successfully submitted and would be delivered to recipients shortly.