Cleaned up log messages in CurrentSegmentInfobox
authordurandn
Fri, 28 Aug 2015 15:55:36 +0200
changeset 81 24cf59559959
parent 80 774398426834
child 82 bf1c38268e25
Cleaned up log messages in CurrentSegmentInfobox
server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.js
--- a/server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.js	Fri Aug 28 12:25:06 2015 +0200
+++ b/server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.js	Fri Aug 28 15:55:36 2015 +0200
@@ -78,7 +78,6 @@
 IriSP.Widgets.CurrentSegmentInfobox.prototype.draw = function() {
     var _this = this;
     this.segments = this.getWidgetAnnotations();
-    console.log(this.l10n.submit)
     this.renderTemplate();
     this.currentSegment = false;
     this.clearBox();
@@ -178,8 +177,6 @@
     _annotation.setEnd(this.currentSegment.end);
     _annotation.created = this.currentSegment.created;
     _annotation.creator = this.currentSegment.creator;
-    _annotation.color = this.currentSegment.color;
-    console.log(this.currentSegment.color)
     _annotation.title = new_title /* Champ titre */
     _annotation.description = new_description /* Champ description */
     var _tagIds = IriSP._(new_tags_titles).map(function(_title) {
@@ -208,7 +205,6 @@
         contentType: 'application/json',
         data: _export.serialize(), /* L'objet Source est sérialisé */
         success: function(_data) {
-            console.log("success!")
             _export.getAnnotations().removeElement(_annotation, true); /* Pour éviter les doublons, on supprime l'annotation qui a été envoyée */
             _export.deSerialize(_data); /* On désérialise les données reçues pour les réinjecter */
             _this.source.merge(_export); /* On récupère les données réimportées dans l'espace global des données */
@@ -231,8 +227,6 @@
             _this.player.trigger("AnnotationsList.refresh"); /* On force le rafraîchissement du widget AnnotationsList */
         },
         error: function(_xhr, _error, _thrown) {
-            console.log("error?"+_error+" "+_thrown)
-            console.log(_xhr)
             IriSP.log("Error when sending annotation", _thrown);
             _export.getAnnotations().removeElement(_annotation, true);
         }