Video Annotation Tool: Added Instructor Filter
This commit is contained in:
@@ -182,8 +182,6 @@ ${static.css(group='style-vendor-tinymce-skin', raw=True)}
|
||||
userId = '${instructor_username}';
|
||||
}
|
||||
|
||||
console.log("${user.is_staff}");
|
||||
|
||||
//Catch
|
||||
var annotator = ova.annotator,
|
||||
catchOptions = {
|
||||
|
||||
@@ -175,6 +175,10 @@ ${static.css(group='style-vendor-tinymce-skin', raw=True)}
|
||||
var ova = new OpenVideoAnnotation.Annotator($('#videoHolder'),options);
|
||||
|
||||
ova.annotator.addPlugin('Tags');
|
||||
var userId = '${user.email}';
|
||||
if('${default_tab}'.toLowerCase() == 'instructor'){
|
||||
userId = '${instructor_username}';
|
||||
}
|
||||
|
||||
//Catch
|
||||
var annotator = ova.annotator,
|
||||
@@ -184,9 +188,13 @@ ${static.css(group='style-vendor-tinymce-skin', raw=True)}
|
||||
imageUrlRoot:imgURLRoot,
|
||||
showMediaSelector: false,
|
||||
showPublicPrivate: true,
|
||||
userId:'${user.email}',
|
||||
userId:userId,
|
||||
pagination:pagination,//Number of Annotations per load in the pagination,
|
||||
flags:is_staff
|
||||
flags:is_staff,
|
||||
default_tab: "${default_tab}",
|
||||
instructor_username: "${instructor_username}",
|
||||
annotation_mode: "${annotation_mode}",
|
||||
},
|
||||
Catch = new CatchAnnotation($('#catchDIV'),catchOptions);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user