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) {