fixed dragDrop to use a handle rather than the whole

object for dragdrop start events.
This commit is contained in:
David Delikat 2009-04-11 15:16:09 +00:00
parent 4086723a70
commit 46e73ed59f
3 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,5 @@
7.7.4 7.7.4
- fixed #9764: drag drop now uses the handle for 'pickup' rather than the whole object.
- Default Survey Question bundles now store full answer information in json. Everything configured in an answer will be saved in a default configuration. - Default Survey Question bundles now store full answer information in json. Everything configured in an answer will be saved in a default configuration.
- Survey [[question variable]] now returns the shown answer text for multiple choice questions, and the recorded value for non-multiple choice questions. - Survey [[question variable]] now returns the shown answer text for multiple choice questions, and the recorded value for non-multiple choice questions.
- fixed #10142: Matrix 2.0 - Search screen compare button not functional - fixed #10142: Matrix 2.0 - Search screen compare button not functional

Binary file not shown.

View file

@ -223,8 +223,10 @@ function dragable_init(url) {
}else { }else {
for (i = 0; i< children.length;i++) { for (i = 0; i< children.length;i++) {
draggableObjectList[draggableObjectList.length] = children[i]; draggableObjectList[draggableObjectList.length] = children[i];
new YAHOO.webgui.DDList(document.getElementById(children[i].id + "_div")); dragDropElement = document.getElementById(children[i].id + "_div");
new YAHOO.util.DDTarget(document.getElementById(children[i].id + "_div")); dragDrop = new YAHOO.webgui.DDList(dragDropElement);
new YAHOO.util.DDTarget(dragDropElement);
dragDrop.setHandleElId(children[i].id + "_handle");
} }
} }
obj = document.getElementById("position" + contentCount); obj = document.getElementById("position" + contentCount);