mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Drag and Drop für Projekttask eingefügt
This commit is contained in:
@@ -783,3 +783,33 @@ function ProjekttaskUpdateErledigt(event)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/***** Drag Observer Tasks verschieben *****/
|
||||
var taskDDObserver=
|
||||
{
|
||||
onDragStart: function (evt,transferData,action)
|
||||
{
|
||||
var tree = document.getElementById('projekttask-tree')
|
||||
var row = { }
|
||||
var col = { }
|
||||
var child = { }
|
||||
|
||||
//Index der Quell-Row ermitteln
|
||||
tree.treeBoxObject.getCellAt(evt.pageX, evt.pageY, row, col, child)
|
||||
|
||||
//Beim Scrollen soll kein DnD gemacht werden
|
||||
if(col.value==null)
|
||||
return false;
|
||||
|
||||
//Daten ermitteln
|
||||
col = tree.columns ? tree.columns["projekttask-treecol-projekttask_id"] : "projekttask-treecol-projekttask_id";
|
||||
projekttaskID=tree.view.getCellText(row.value,col);
|
||||
|
||||
var paramList= projekttaskID
|
||||
//debug('param:'+paramList);
|
||||
transferData.data=new TransferData();
|
||||
transferData.data.addDataForFlavour("application/taskID",paramList);
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
@@ -39,6 +39,7 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/projekt/mantisdetail.overlay.xul.p
|
||||
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/phpRequest.js.php" />
|
||||
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/projekt/projekttask.overlay.js.php" />
|
||||
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/functions.js.php" />
|
||||
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/DragAndDrop.js"/>
|
||||
|
||||
<!-- ************************ -->
|
||||
<!-- * Projekttask * -->
|
||||
@@ -70,7 +71,9 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/projekt/mantisdetail.overlay.xul.p
|
||||
<!-- Bem.: style="visibility:collapse" versteckt eine Spalte -->
|
||||
<tree id="projekttask-tree" seltype="single" hidecolumnpicker="false" flex="1"
|
||||
datasources="rdf:null" ref="http://www.technikum-wien.at/projekttask"
|
||||
style="margin:0px;" enableColumnDrag="true"
|
||||
style="margin:0px;" enableColumnDrag="true"
|
||||
ondraggesture="nsDragAndDrop.startDrag(event,taskDDObserver);"
|
||||
|
||||
onselect="onselectProjekttask(this);"
|
||||
onclick="ProjekttaskUpdateErledigt(event);"
|
||||
persist="height"
|
||||
|
||||
Reference in New Issue
Block a user