diff -r 7623f9af9272 -r 2409cb4cebaf src/widgets/LatestAnnotation.js
--- a/src/widgets/LatestAnnotation.js Fri Oct 02 11:27:17 2015 +0200
+++ b/src/widgets/LatestAnnotation.js Mon Dec 28 15:50:04 2015 +0100
@@ -23,6 +23,7 @@
* Displays a button that copy currently displayed annotation into CreateAnnotation input field
*/
copy_and_edit_button: false,
+ hide_annotations_list: false,
/*
* Allows clicks on an annotation from Annotations to display the annotation content into this widget
*/
@@ -61,12 +62,12 @@
IriSP.Widgets.LatestAnnotation.prototype.annotationTemplate =
"
"
+ + "{{#copy_and_edit_button}}
{{button_text}}
{{/copy_and_edit_button}}"
+ "
{{{annotation_created}}}
"
+ "
{{{annotation_creator}}}{{#annotation_title}}: {{{annotation_title}}}{{/annotation_title}}
"
+ "
"
+ "{{{annotation_content}}}"
+ "
"
- + "{{#copy_and_edit_button}}
{{button_text}}
{{/copy_and_edit_button}}"
+ "
"
@@ -276,7 +277,9 @@
IriSP.Widgets.LatestAnnotation.prototype.copy_and_edit = function(){
this.player.trigger("CreateAnnotation.show");
- this.player.trigger("AnnotationsList.hide");
+ if (this.hide_annotations_list){
+ this.player.trigger("AnnotationsList.hide");
+ }
annotationText = $('.Ldt-LatestAnnotation-Content').get(0).innerHTML;
$('.Ldt-CreateAnnotation-Description').removeClass('empty');