From e9c484f79d1cacde12f9b502ef73f68c350131a1 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Sat, 6 Mar 2010 10:15:41 +0000 Subject: [PATCH] Fixing the drag and drop demos to work with Chrome --- demos.json | 4 +- demos/drag-anything.html | 3 +- drag.html => demos/drag.html | 72 +++++++++++++----------------------- 3 files changed, 30 insertions(+), 49 deletions(-) rename drag.html => demos/drag.html (67%) diff --git a/demos.json b/demos.json index 116b68a..9c228ad 100644 --- a/demos.json +++ b/demos.json @@ -72,7 +72,7 @@ "url": "drag", "tags": "dnd", "support": { - "live": "ie firefox safari" + "live": "ie firefox safari chrome" } }, { @@ -80,7 +80,7 @@ "url": "drag-anything", "tags": "dnd", "support": { - "live": "ie firefox safari" + "live": "ie firefox safari chrome" } }, { diff --git a/demos/drag-anything.html b/demos/drag-anything.html index 0fd557b..a60bff5 100644 --- a/demos/drag-anything.html +++ b/demos/drag-anything.html @@ -58,7 +58,7 @@ label {
-

Remy Sharp My name is Remy Sharp (@rem on Twitter and my blog). I run a small business in Brighton, UK called Left Logic and am running the Full Frontal JavaScript Conference and I specialise in bespoke front-end development & backend.

+

Remy Sharp My name is Remy Sharp (@rem on Twitter and my blog). I run a small business in Brighton, UK called Left Logic and am running the Full Frontal JavaScript Conference and I specialise in bespoke front-end development & backend.

Drop here for info about the dragged item

@@ -68,6 +68,7 @@ label { function cancel(e) { if (e.preventDefault) e.preventDefault(); // required by FF + Safari + e.dataTransfer.dropEffect = 'copy'; // tells the browser what drop effect is allowed here return false; // required by IE } diff --git a/drag.html b/demos/drag.html similarity index 67% rename from drag.html rename to demos/drag.html index 06419b4..253b95e 100644 --- a/drag.html +++ b/demos/drag.html @@ -1,19 +1,5 @@ - - - - Drag and drop - - - +
+

Drag the list items over the dustbin, and drop them to have the bin eat the item

- +
- - - -