Use XHR for asset links
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user