[Containment] Fire a link action on drop

Fire a link action as the result of a drag-drop operation,
WTD-962.
This commit is contained in:
Victor Woeltjen
2015-04-07 20:35:54 -07:00
parent 5045795a7c
commit 44eb54884b
3 changed files with 35 additions and 37 deletions

View File

@@ -16,8 +16,10 @@ define(
// Add this domain object's identifier
function addId(model) {
model.composition = model.composition || [];
model.composition.push(selectedId);
if (Array.isArray(model.composition) &&
model.composition.indexOf(selectedId) < 0) {
model.composition.push(selectedId);
}
}
// Persist changes to the domain object