diff --git a/src/scripts/tutti/10_tasks.js b/src/scripts/tutti/10_tasks.js index e879200..ed42b45 100644 --- a/src/scripts/tutti/10_tasks.js +++ b/src/scripts/tutti/10_tasks.js @@ -432,6 +432,14 @@ $(function() { shot_open(shot_id); }); + $("a.asset-link[data-asset-id]").click(function(e) { + e.preventDefault(); + // delegateTarget is the thing the event hander was attached to, + // rather than the thing we clicked on. + var asset_id = e.delegateTarget.dataset.assetId; + asset_open(asset_id); + }); + $("a.task-link[data-task-id]").click(function(e) { e.preventDefault(); var task_id = e.delegateTarget.dataset.taskId;