Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5631 (closed enhancement: untested)

Opened 2 years ago

Last modified 2 years ago

[PATCH] droppable onUnHover

Reported by: josh@3io.com Assigned to: thomas@fesch.at
Priority: normal Milestone:
Component: script.aculo.us Version:
Severity: normal Keywords:
Cc:

Description

hoverclass does not allow for swapping a background-image, and onHover has no opposite. Here are my modifications to implement:

  deactivate: function(drop, drag, dropElement, overlap) {
    if(drop.hoverclass)
      Element.removeClassName(drop.element, drop.hoverclass);
    this.last_active = null;
    if (this.last_active.onUnHover)
      this.last_active.onUnHover(drag, dropElement, overlap);
  },

and on line 4 of the show function:

    if(this.last_active) this.deactivate(this.last_active, element, drop.element, Position.overlap(drop.overlap, drop.element));

Change History

09/03/06 21:53:46 changed by madrobby

  • status changed from new to closed.
  • resolution set to untested.