cms/app-client/app/components/visu-chrono.js
changeset 81 848e4a5ad4d9
parent 77 0889740f79c2
child 92 3437f5191645
--- a/cms/app-client/app/components/visu-chrono.js	Thu Dec 31 10:22:55 2015 +0100
+++ b/cms/app-client/app/components/visu-chrono.js	Thu Jan 07 17:46:50 2016 +0100
@@ -5,7 +5,7 @@
     var _this = this;
 
     if (this.get('container').lookup('controller:application').date !== null){
-      this.highlightQuery(this.get('container').lookup('controller:application').date.split(','));
+      this.highlightQuery(this.get('container').lookup('controller:application').date);
     }
 
     var isMouseDown = false,
@@ -30,10 +30,10 @@
     });
   },
   sendUpdate: function(){
-    var dateQuery = $('.highlighted').map(function(index, elt) {
-      return parseInt($(elt).parent().attr('id')) + parseInt($(elt).html());
-    }).get().join(',');
-    dateQuery = (dateQuery == "") ? null : dateQuery;
+    var dateQuery = [];
+    $('.highlighted').map(function(index, elt) {
+      dateQuery.push(parseInt($(elt).parent().attr('id')) + parseInt($(elt).html()));
+    });
     this.sendAction('action', dateQuery);
   },
   highlightQuery: function(list){