projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
56cf989
)
Désactivation du dragover si rien n'est sélectionné : se produit lors d'un upload...
author
Benoît Pin
<pin@cri.ensmp.fr>
Fri, 10 Oct 2014 09:27:59 +0000
(11:27 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Fri, 10 Oct 2014 09:27:59 +0000
(11:27 +0200)
skins/photo_lightbox_viewer.js
patch
|
blob
|
history
diff --git
a/skins/photo_lightbox_viewer.js
b/skins/photo_lightbox_viewer.js
index
3438151
..
024e01e
100644
(file)
--- a/
skins/photo_lightbox_viewer.js
+++ b/
skins/photo_lightbox_viewer.js
@@
-481,6
+481,9
@@
Lightbox.prototype.onDragStart = function(evt) {
};
Lightbox.prototype.onDragOver = function(evt) {
};
Lightbox.prototype.onDragOver = function(evt) {
+ if (!this.dragged) {
+ return;
+ }
var target = getTargetedObject(evt);
while(target && target.className !== 'slide') {
target = target.parentNode;
var target = getTargetedObject(evt);
while(target && target.className !== 'slide') {
target = target.parentNode;