Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
javascript
javascript

if (pui.dragDropInfo["target element id"] == "Trash") {
  changeElementValue("DeletedItems", Number(get("DeletedItems")) + 1);
}

Ask the user to confirm the drag and drop operation:

Code Block
javascript
javascript

if (!confirm("Are you sure?")) {
  pui.dragDropInfo.cancel = true;
}