From 26eb16ebc2744a92dc6d770898ffab325b647189 Mon Sep 17 00:00:00 2001 From: lduarte1991 Date: Wed, 30 Apr 2014 12:24:07 -0400 Subject: [PATCH] Added unit signifier - narrower annotation target --- lms/templates/textannotation.html | 2 ++ lms/templates/videoannotation.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lms/templates/textannotation.html b/lms/templates/textannotation.html index adb39c1189..01d94bf054 100644 --- a/lms/templates/textannotation.html +++ b/lms/templates/textannotation.html @@ -54,6 +54,8 @@ uri = window.location.protocol; for (var index = 0; index <= 9; index += 1) uri += lms_location.split("/")[index]+"/"; //Get the unit url } + var unit_id = $('#sequence-list').find('.active').attr("data-element"); + uri += unit_id; var pagination = 100, is_staff = !('${user.is_staff}'=='False'), options = { diff --git a/lms/templates/videoannotation.html b/lms/templates/videoannotation.html index 64c5db4e5d..82a820a79a 100644 --- a/lms/templates/videoannotation.html +++ b/lms/templates/videoannotation.html @@ -57,7 +57,8 @@ uri = window.location.protocol; for (var index = 0; index <= 9; index += 1) uri += lms_location.split("/")[index]+"/"; //Get the unit url } - + var unit_id = $('#sequence-list').find('.active').attr("data-element"); + uri += unit_id; var pagination = 100, is_staff = !('${user.is_staff}'=='False'), options = {