Gitlab CSE Unil

Commit a5372294 authored by M. Chardon's avatar M. Chardon
Browse files

bouton de suppression de l'annotation dans l'édition

parent 8a960ed9
...@@ -895,6 +895,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -895,6 +895,7 @@ Y.extend(ANNOTATION, Y.Base, {
if (this.tooltype.reply === 1) { if (this.tooltype.reply === 1) {
divconteneurdisplay.append(this.get_button_question()); divconteneurdisplay.append(this.get_button_question());
} }
divconteneurdisplay.append(this.get_button_remove());
} }
return divconteneurdisplay; return divconteneurdisplay;
...@@ -935,6 +936,12 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -935,6 +936,12 @@ Y.extend(ANNOTATION, Y.Base, {
buttonquestiondisplay.on('click', this.change_question_status, this); buttonquestiondisplay.on('click', this.change_question_status, this);
return buttonquestiondisplay; return buttonquestiondisplay;
}, },
get_button_remove: function () {
var buttontrash = "<button id='" + this.divcartridge + "_buttonremove' style='display:none;margin-left:10px;'><img src='" + M.util.image_url('trash', 'assignfeedback_editpdfplus') + "' /></button>";
var buttontrashdisplay = Y.Node.create(buttontrash);
buttontrashdisplay.on('click', this.remove, this);
return buttontrashdisplay;
},
get_input_question: function () { get_input_question: function () {
var qst = 0; var qst = 0;
if (this.answerrequested && this.answerrequested === 1) { if (this.answerrequested && this.answerrequested === 1) {
...@@ -957,30 +964,34 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -957,30 +964,34 @@ Y.extend(ANNOTATION, Y.Base, {
//var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value'); //var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right"); var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right");
var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left"); var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left");
if (interrupt.get('value') === '1') { if (interrupt) {
if (buttonplusr) { if (interrupt.get('value') === '1') {
buttonplusr.show(); if (buttonplusr) {
} buttonplusr.show();
if (buttonplusl) { }
buttonplusl.show(); if (buttonplusl) {
} buttonplusl.show();
} else if (interrupt.get('value') === '0') { }
if (buttonplusr) { } else if (interrupt.get('value') === '0') {
buttonplusr.show(); if (buttonplusr) {
} buttonplusr.show();
if (buttonplusl) { }
buttonplusl.hide(); if (buttonplusl) {
} buttonplusl.hide();
} else { }
if (buttonplusr) { } else {
buttonplusr.hide(); if (buttonplusr) {
} buttonplusr.hide();
if (buttonplusl) { }
buttonplusl.show(); if (buttonplusl) {
buttonplusl.show();
}
} }
} }
divdisplay.setContent(this.get_text_to_diplay_in_cartridge()); if (divdisplay) {
if (this.tooltypefamille.label === 'frame') { divdisplay.setContent(this.get_text_to_diplay_in_cartridge());
}
if (this.tooltypefamille.label === 'frame' && buttonplusr) {
buttonplusr.hide(); buttonplusr.hide();
buttonplusl.hide(); buttonplusl.hide();
} }
...@@ -1033,7 +1044,10 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1033,7 +1044,10 @@ Y.extend(ANNOTATION, Y.Base, {
apply_question_status: function () { apply_question_status: function () {
var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion"); var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion");
var questionvalue = this.editor.get_dialogue_element('#' + this.divcartridge + "_question"); var questionvalue = this.editor.get_dialogue_element('#' + this.divcartridge + "_question");
var value = parseInt(questionvalue.get('value')); var value = 0;
if (questionvalue) {
value = parseInt(questionvalue.get('value'));
}
if (buttonquestion) { if (buttonquestion) {
if (value === 1) { if (value === 1) {
buttonquestion.one('img').setAttribute('src', M.util.image_url('help', 'core')); buttonquestion.one('img').setAttribute('src', M.util.image_url('help', 'core'));
...@@ -1146,6 +1160,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1146,6 +1160,7 @@ Y.extend(ANNOTATION, Y.Base, {
var buttoncancel = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttoncancel"); var buttoncancel = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttoncancel");
var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion"); var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion");
var buttonrotation = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonrotation"); var buttonrotation = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonrotation");
var buttonremove = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonremove");
var input = this.editor.get_dialogue_element('#' + this.divcartridge + "_editinput"); var input = this.editor.get_dialogue_element('#' + this.divcartridge + "_editinput");
divdisplay.hide(); divdisplay.hide();
if (buttonplusr) { if (buttonplusr) {
...@@ -1163,6 +1178,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1163,6 +1178,7 @@ Y.extend(ANNOTATION, Y.Base, {
if (buttonquestion) { if (buttonquestion) {
buttonquestion.show(); buttonquestion.show();
} }
buttonremove.show();
divprincipale.setStyle('z-index', 1000); divprincipale.setStyle('z-index', 1000);
input.set('focus', 'on'); input.set('focus', 'on');
...@@ -1203,7 +1219,9 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1203,7 +1219,9 @@ Y.extend(ANNOTATION, Y.Base, {
this.hide_edit(); this.hide_edit();
this.apply_visibility_annot(); this.apply_visibility_annot();
var divprincipale = this.editor.get_dialogue_element('#' + this.divcartridge); var divprincipale = this.editor.get_dialogue_element('#' + this.divcartridge);
divprincipale.detach(); if (divprincipale) {
divprincipale.detach();
}
} }
return; return;
}, },
...@@ -1215,6 +1233,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1215,6 +1233,7 @@ Y.extend(ANNOTATION, Y.Base, {
var buttoncancel = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttoncancel"); var buttoncancel = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttoncancel");
var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion"); var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion");
var buttonrotation = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonrotation"); var buttonrotation = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonrotation");
var buttonremove = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonremove");
if (divdisplay) { if (divdisplay) {
divdisplay.show(); divdisplay.show();
divdisplay.set('style', 'display:inline;color:' + this.get_color_cartridge() + ';'); divdisplay.set('style', 'display:inline;color:' + this.get_color_cartridge() + ';');
...@@ -1222,16 +1241,24 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1222,16 +1241,24 @@ Y.extend(ANNOTATION, Y.Base, {
if (buttonrotation) { if (buttonrotation) {
buttonrotation.show(); buttonrotation.show();
} }
divedit.hide(); if (divedit) {
buttonsave.hide(); divedit.hide();
buttoncancel.hide(); buttonsave.hide();
buttoncancel.hide();
}
if (buttonquestion) { if (buttonquestion) {
buttonquestion.hide(); buttonquestion.hide();
} }
divprincipale.setStyle('z-index', 1); if (buttonremove) {
buttonremove.hide();
}
if (divprincipale) {
divprincipale.setStyle('z-index', 1);
}
this.enabled_canvas_event(); this.enabled_canvas_event();
}, }
,
/** /**
* Delete an annotation * Delete an annotation
* @protected * @protected
...@@ -1241,9 +1268,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1241,9 +1268,7 @@ Y.extend(ANNOTATION, Y.Base, {
remove: function (e) { remove: function (e) {
var annotations, var annotations,
i; i;
e.preventDefault(); e.preventDefault();
annotations = this.editor.pages[this.editor.currentpage].annotations; annotations = this.editor.pages[this.editor.currentpage].annotations;
for (i = 0; i < annotations.length; i++) { for (i = 0; i < annotations.length; i++) {
if (annotations[i] === this) { if (annotations[i] === this) {
...@@ -3293,13 +3318,15 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, { ...@@ -3293,13 +3318,15 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
var buttonadd = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonadd"); var buttonadd = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonadd");
var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right"); var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right");
var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left"); var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left");
divdisplay.set('style', 'display:inline;color:' + this.get_color() + ';'); if (divdisplay) {
buttonrender.show(); divdisplay.set('style', 'display:inline;color:' + this.get_color() + ';');
buttonadd.show(); buttonrender.show();
if (buttonplusr) { buttonadd.show();
buttonplusr.hide(); if (buttonplusr) {
buttonplusr.hide();
}
buttonplusl.hide();
} }
buttonplusl.hide();
}, },
/** /**
* Delete an annotation * Delete an annotation
...@@ -3797,19 +3824,21 @@ Y.extend(ANNOTATIONCOMMENTPLUS, M.assignfeedback_editpdfplus.annotation, { ...@@ -3797,19 +3824,21 @@ Y.extend(ANNOTATIONCOMMENTPLUS, M.assignfeedback_editpdfplus.annotation, {
}, },
apply_visibility_annot: function () { apply_visibility_annot: function () {
ANNOTATIONCOMMENTPLUS.superclass.apply_visibility_annot.apply(this); ANNOTATIONCOMMENTPLUS.superclass.apply_visibility_annot.apply(this);
var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display"); var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
var interrupt = this.editor.get_dialogue_element('#' + this.divcartridge + "_onof"); var interrupt = this.editor.get_dialogue_element('#' + this.divcartridge + "_onof");
var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right"); var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right");
var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left"); var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left");
buttonplusr.one('img').setAttribute('src', M.util.image_url('t/down', 'core')); if (buttonplusr) {
buttonplusl.one('img').setAttribute('src', M.util.image_url('t/up', 'core')); buttonplusr.one('img').setAttribute('src', M.util.image_url('t/down', 'core'));
if (interrupt.get('value') === '2'){ buttonplusl.one('img').setAttribute('src', M.util.image_url('t/up', 'core'));
divdisplay.setContent('<table><tr><td>' + this.get_text_to_diplay_in_cartridge().replace(/\n/g, "<br/>") + '</td></tr></table><br/>'); if (interrupt.get('value') === '2') {
} else if (interrupt.get('value') === '1'){ divdisplay.setContent('<table><tr><td>' + this.get_text_to_diplay_in_cartridge().replace(/\n/g, "<br/>") + '</td></tr></table><br/>');
buttonplusl.one('img').setAttribute('src', M.util.image_url('t/left', 'core')); } else if (interrupt.get('value') === '1') {
} else if (interrupt.get('value') === '0'){ buttonplusl.one('img').setAttribute('src', M.util.image_url('t/left', 'core'));
buttonplusr.one('img').setAttribute('src', M.util.image_url('t/right', 'core')); } else if (interrupt.get('value') === '0') {
buttonplusr.one('img').setAttribute('src', M.util.image_url('t/right', 'core'));
}
} }
}, },
save_annot: function () { save_annot: function () {
......
...@@ -895,6 +895,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -895,6 +895,7 @@ Y.extend(ANNOTATION, Y.Base, {
if (this.tooltype.reply === 1) { if (this.tooltype.reply === 1) {
divconteneurdisplay.append(this.get_button_question()); divconteneurdisplay.append(this.get_button_question());
} }
divconteneurdisplay.append(this.get_button_remove());
} }
return divconteneurdisplay; return divconteneurdisplay;
...@@ -935,6 +936,12 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -935,6 +936,12 @@ Y.extend(ANNOTATION, Y.Base, {
buttonquestiondisplay.on('click', this.change_question_status, this); buttonquestiondisplay.on('click', this.change_question_status, this);
return buttonquestiondisplay; return buttonquestiondisplay;
}, },
get_button_remove: function () {
var buttontrash = "<button id='" + this.divcartridge + "_buttonremove' style='display:none;margin-left:10px;'><img src='" + M.util.image_url('trash', 'assignfeedback_editpdfplus') + "' /></button>";
var buttontrashdisplay = Y.Node.create(buttontrash);
buttontrashdisplay.on('click', this.remove, this);
return buttontrashdisplay;
},
get_input_question: function () { get_input_question: function () {
var qst = 0; var qst = 0;
if (this.answerrequested && this.answerrequested === 1) { if (this.answerrequested && this.answerrequested === 1) {
...@@ -957,30 +964,34 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -957,30 +964,34 @@ Y.extend(ANNOTATION, Y.Base, {
//var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value'); //var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right"); var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right");
var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left"); var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left");
if (interrupt.get('value') === '1') { if (interrupt) {
if (buttonplusr) { if (interrupt.get('value') === '1') {
buttonplusr.show(); if (buttonplusr) {
} buttonplusr.show();
if (buttonplusl) { }
buttonplusl.show(); if (buttonplusl) {
} buttonplusl.show();
} else if (interrupt.get('value') === '0') { }
if (buttonplusr) { } else if (interrupt.get('value') === '0') {
buttonplusr.show(); if (buttonplusr) {
} buttonplusr.show();
if (buttonplusl) { }
buttonplusl.hide(); if (buttonplusl) {
} buttonplusl.hide();
} else { }
if (buttonplusr) { } else {
buttonplusr.hide(); if (buttonplusr) {
} buttonplusr.hide();
if (buttonplusl) { }
buttonplusl.show(); if (buttonplusl) {
buttonplusl.show();
}
} }
} }
divdisplay.setContent(this.get_text_to_diplay_in_cartridge()); if (divdisplay) {
if (this.tooltypefamille.label === 'frame') { divdisplay.setContent(this.get_text_to_diplay_in_cartridge());
}
if (this.tooltypefamille.label === 'frame' && buttonplusr) {
buttonplusr.hide(); buttonplusr.hide();
buttonplusl.hide(); buttonplusl.hide();
} }
...@@ -1033,7 +1044,10 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1033,7 +1044,10 @@ Y.extend(ANNOTATION, Y.Base, {
apply_question_status: function () { apply_question_status: function () {
var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion"); var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion");
var questionvalue = this.editor.get_dialogue_element('#' + this.divcartridge + "_question"); var questionvalue = this.editor.get_dialogue_element('#' + this.divcartridge + "_question");
var value = parseInt(questionvalue.get('value')); var value = 0;
if (questionvalue) {
value = parseInt(questionvalue.get('value'));
}
if (buttonquestion) { if (buttonquestion) {
if (value === 1) { if (value === 1) {
buttonquestion.one('img').setAttribute('src', M.util.image_url('help', 'core')); buttonquestion.one('img').setAttribute('src', M.util.image_url('help', 'core'));
...@@ -1146,6 +1160,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1146,6 +1160,7 @@ Y.extend(ANNOTATION, Y.Base, {
var buttoncancel = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttoncancel"); var buttoncancel = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttoncancel");
var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion"); var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion");
var buttonrotation = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonrotation"); var buttonrotation = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonrotation");
var buttonremove = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonremove");
var input = this.editor.get_dialogue_element('#' + this.divcartridge + "_editinput"); var input = this.editor.get_dialogue_element('#' + this.divcartridge + "_editinput");
divdisplay.hide(); divdisplay.hide();
if (buttonplusr) { if (buttonplusr) {
...@@ -1163,6 +1178,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1163,6 +1178,7 @@ Y.extend(ANNOTATION, Y.Base, {
if (buttonquestion) { if (buttonquestion) {
buttonquestion.show(); buttonquestion.show();
} }
buttonremove.show();
divprincipale.setStyle('z-index', 1000); divprincipale.setStyle('z-index', 1000);
input.set('focus', 'on'); input.set('focus', 'on');
...@@ -1203,7 +1219,9 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1203,7 +1219,9 @@ Y.extend(ANNOTATION, Y.Base, {
this.hide_edit(); this.hide_edit();
this.apply_visibility_annot(); this.apply_visibility_annot();
var divprincipale = this.editor.get_dialogue_element('#' + this.divcartridge); var divprincipale = this.editor.get_dialogue_element('#' + this.divcartridge);
divprincipale.detach(); if (divprincipale) {
divprincipale.detach();
}
} }
return; return;
}, },
...@@ -1215,6 +1233,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1215,6 +1233,7 @@ Y.extend(ANNOTATION, Y.Base, {
var buttoncancel = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttoncancel"); var buttoncancel = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttoncancel");
var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion"); var buttonquestion = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonquestion");
var buttonrotation = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonrotation"); var buttonrotation = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonrotation");
var buttonremove = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonremove");
if (divdisplay) { if (divdisplay) {
divdisplay.show(); divdisplay.show();
divdisplay.set('style', 'display:inline;color:' + this.get_color_cartridge() + ';'); divdisplay.set('style', 'display:inline;color:' + this.get_color_cartridge() + ';');
...@@ -1222,16 +1241,24 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1222,16 +1241,24 @@ Y.extend(ANNOTATION, Y.Base, {
if (buttonrotation) { if (buttonrotation) {
buttonrotation.show(); buttonrotation.show();
} }
divedit.hide(); if (divedit) {
buttonsave.hide(); divedit.hide();
buttoncancel.hide(); buttonsave.hide();
buttoncancel.hide();
}
if (buttonquestion) { if (buttonquestion) {
buttonquestion.hide(); buttonquestion.hide();
} }
divprincipale.setStyle('z-index', 1); if (buttonremove) {
buttonremove.hide();
}
if (divprincipale) {
divprincipale.setStyle('z-index', 1);
}
this.enabled_canvas_event(); this.enabled_canvas_event();
}, }
,
/** /**
* Delete an annotation * Delete an annotation
* @protected * @protected
...@@ -1241,9 +1268,7 @@ Y.extend(ANNOTATION, Y.Base, { ...@@ -1241,9 +1268,7 @@ Y.extend(ANNOTATION, Y.Base, {
remove: function (e) { remove: function (e) {
var annotations, var annotations,
i; i;
e.preventDefault(); e.preventDefault();
annotations = this.editor.pages[this.editor.currentpage].annotations; annotations = this.editor.pages[this.editor.currentpage].annotations;
for (i = 0; i < annotations.length; i++) { for (i = 0; i < annotations.length; i++) {
if (annotations[i] === this) { if (annotations[i] === this) {
...@@ -3292,13 +3317,15 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, { ...@@ -3292,13 +3317,15 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
var buttonadd = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonadd"); var buttonadd = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonadd");
var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right"); var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right");
var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left"); var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left");
divdisplay.set('style', 'display:inline;color:' + this.get_color() + ';'); if (divdisplay) {
buttonrender.show(); divdisplay.set('style', 'display:inline;color:' + this.get_color() + ';');
buttonadd.show(); buttonrender.show();
if (buttonplusr) { buttonadd.show();
buttonplusr.hide(); if (buttonplusr) {
buttonplusr.hide();
}
buttonplusl.hide();
} }
buttonplusl.hide();
}, },
/** /**
* Delete an annotation * Delete an annotation
...@@ -3795,19 +3822,21 @@ Y.extend(ANNOTATIONCOMMENTPLUS, M.assignfeedback_editpdfplus.annotation, { ...@@ -3795,19 +3822,21 @@ Y.extend(ANNOTATIONCOMMENTPLUS, M.assignfeedback_editpdfplus.annotation, {
}, },
apply_visibility_annot: function () { apply_visibility_annot: function () {
ANNOTATIONCOMMENTPLUS.superclass.apply_visibility_annot.apply(this); ANNOTATIONCOMMENTPLUS.superclass.apply_visibility_annot.apply(this);
var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display"); var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
var interrupt = this.editor.get_dialogue_element('#' + this.divcartridge + "_onof"); var interrupt = this.editor.get_dialogue_element('#' + this.divcartridge + "_onof");
var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right"); var buttonplusr = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_right");
var buttonplusl = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit_left");