projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5110583
)
Don't fire DragDrop2:end either if the element wasn't moved.
author
Jan Schneider
<jan@horde.org>
Tue, 16 Mar 2010 16:02:25 +0000
(17:02 +0100)
committer
Jan Schneider
<jan@horde.org>
Tue, 16 Mar 2010 16:02:25 +0000
(17:02 +0100)
horde/js/dragdrop2.js
patch
|
blob
|
history
diff --git
a/horde/js/dragdrop2.js
b/horde/js/dragdrop2.js
index
e685b67
..
c2c6ad6
100644
(file)
--- a/
horde/js/dragdrop2.js
+++ b/
horde/js/dragdrop2.js
@@
-446,7
+446,9
@@
Drag = Class.create({
DragDrop.Drags.cover.down().siblings().invoke('remove');
}
- this.element.fire('DragDrop2:end', e);
+ if (this.wasMoved) {
+ this.element.fire('DragDrop2:end', e);
+ }
},
_onMoveDrag: function(xy, e)