Gitlab CSE Unil

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

enregistrement du commentaire étudiant sur changement de statut et fermeture de la fenetre

parent 05306a10
......@@ -1179,6 +1179,10 @@ Y.extend(ANNOTATION, Y.Base, {
},
change_status: function (e, idclick) {
this.studentstatus = idclick;
var input = this.editor.get_dialogue_element('#' + this.divcartridge + "_studentanswer");
if (input) {
this.studentanswer = input.get('value');
}
var shapesChildren = this.editor.annotationsparent[this.id];
if (shapesChildren) {
......
......@@ -1179,6 +1179,10 @@ Y.extend(ANNOTATION, Y.Base, {
},
change_status: function (e, idclick) {
this.studentstatus = idclick;
var input = this.editor.get_dialogue_element('#' + this.divcartridge + "_studentanswer");
if (input) {
this.studentanswer = input.get('value');
}
var shapesChildren = this.editor.annotationsparent[this.id];
if (shapesChildren) {
......
......@@ -632,6 +632,10 @@ Y.extend(ANNOTATION, Y.Base, {
},
change_status: function (e, idclick) {
this.studentstatus = idclick;
var input = this.editor.get_dialogue_element('#' + this.divcartridge + "_studentanswer");
if (input) {
this.studentanswer = input.get('value');
}
var shapesChildren = this.editor.annotationsparent[this.id];
if (shapesChildren) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment