...
Increase the count of deleted items shown on the screen when an object is dropped into the trash can.ondrop: if
Code Block | ||||
---|---|---|---|---|
| ||||
if (pui.dragDropInfo\["target element id"\] == "Trash") changeElementValue("DeletedItems", Number(get("DeletedItems")) + 1); |
Ask the user to confirm the drag and drop operation:ondrop: if (
Code Block | ||||
---|---|---|---|---|
| ||||
if (\!confirm("Are you sure?")) pui.dragDropInfo.cancel = true; |