diff -r 6e0272a9b3ca -r 848e4a5ad4d9 cms/app-client/app/components/visu-chrono.js --- 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){