projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a372c0f
)
Simplify
author
Jan Schneider
<jan@horde.org>
Wed, 16 Jun 2010 16:51:19 +0000
(18:51 +0200)
committer
Jan Schneider
<jan@horde.org>
Wed, 16 Jun 2010 16:51:19 +0000
(18:51 +0200)
horde/js/dragdrop2.js
patch
|
blob
|
history
diff --git
a/horde/js/dragdrop2.js
b/horde/js/dragdrop2.js
index
69f82cc
..
ad135d7
100644
(file)
--- a/
horde/js/dragdrop2.js
+++ b/
horde/js/dragdrop2.js
@@
-170,15
+170,9
@@
var DragDrop = {
_mouseHandler: function(e)
{
- var elt = e.element();
-
- if (this.drags.size()) {
- if (!elt.hasClassName('DragElt')) {
- elt = elt.up('.DragElt');
- }
- if (elt) {
- this.getDrag(elt).mouseDown(e);
- }
+ var elt = e.findElement('.DragElt');
+ if (this.drags.size() && elt) {
+ this.getDrag(elt).mouseDown(e);
}
}