From c51d5d223b2a2b01448899622632f4030ae1b3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 3 Oct 2011 13:53:55 +0000 Subject: [PATCH] =?UTF-8?q?Drag&Drop=20Bugfix=20f=C3=BCr=20neue=20Browserv?= =?UTF-8?q?ersionen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/projekt/ressource.xml.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/content/projekt/ressource.xml.php b/content/projekt/ressource.xml.php index 3c3fbc279..347b8ac63 100644 --- a/content/projekt/ressource.xml.php +++ b/content/projekt/ressource.xml.php @@ -49,6 +49,20 @@ echo ''; seltype="single" hidecolumnpicker="false" flex="1" datasources="rdf:null" ref="http://www.technikum-wien.at/ressource/liste" ondblclick="document.getBindingParent(this).openNotiz(document.getBindingParent(this).value);" + ondrop="nsDragAndDrop.drop(event, + { + getSupportedFlavours : function () + { + var flavours = new FlavourSet(); + flavours.appendFlavour('application/fhc-ressource'); + return flavours; + }, + onDrop: function (evt,dropdata,session) + { + document.getBindingParent(event.target).AddRessource(dropdata.data); + }, + onDragStart: function (evt,transferData,action){} + })" ondragdrop="nsDragAndDrop.drop(event, { getSupportedFlavours : function () @@ -78,6 +92,7 @@ echo ''; }, onDragOver: function(evt,flavour,session) { + evt.preventDefault(); }, onDrop: function (evt,dropdata,session) {