From aeed743aef6dae51bb7d0b30eecca0ff3aa22bf7 Mon Sep 17 00:00:00 2001 From: PaddingMe Date: Wed, 25 Mar 2015 16:19:21 +0800 Subject: [PATCH] "return false" should be annotated when annotated ,"The red box and the orange box can be dragged and dropped between the blue and the green boxes.The purple box can be dragged and dropped only to the yellow box." --- drag-orig.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drag-orig.html b/drag-orig.html index 3db8fc3..0267abe 100644 --- a/drag-orig.html +++ b/drag-orig.html @@ -45,7 +45,7 @@ var idelt = ev.dataTransfer.getData("Text"); var id = ev.target.getAttribute('id'); - return false; + //return false; if( (id =='boxB' || id =='boxA') && (idelt == 'drag' || idelt=='drag2')) return false; @@ -113,4 +113,4 @@

Drag and drop demo in a HTML document, using the HTML5 drag and drop API

- \ No newline at end of file +