diff -r 0444ad28e6ba -r abead2de6332 timeline/js/timeline.js --- a/timeline/js/timeline.js Fri Sep 20 17:34:07 2013 +0200 +++ b/timeline/js/timeline.js Mon Sep 23 12:42:30 2013 +0200 @@ -159,7 +159,7 @@ api_method: "searchForTimelineEdito", occurrences: [], grid_spacing: 12, - tooltip_date_format: '{{dayOfMonth}} {{shortMonthName}} {{year}} {{0hours}}:{{0minutes}}', + tooltip_date_format: '{{dayOfMonth}} {{monthName}} {{year}} à {{0hours}}:{{0minutes}}', class_info: { "Cms\\Previously": { label: "Précédemment", @@ -239,9 +239,9 @@ Tlns.Templates.OccurrenceTooltip = '

{{title}}

'; -Tlns.Templates.OccurrenceDetails = '
' +Tlns.Templates.OccurrenceDetails = '
' + '

{{title}}

{{detail_description}}

' - + '
{{formatted_date}}Lire la suite
'; + + '
Publié le {{formatted_date}}Lire la suite
'; /* Classes */ @@ -614,6 +614,15 @@ } }); + if (this.editing_occurrence) { + $(".Tl-Grid-Editing, .Tl-Detail-X").css("left", this.editing_occurrence.x); + if (this.editing_occurrence.date > this.end_time || this.editing_occurrence.date < this.start_time) { + $(".Tl-Detail-X").hide(); + } else { + $(".Tl-Detail-X").show(); + } + } + }; Tlns.Classes.Timeline.prototype.getUnivers = function(_id) { @@ -654,7 +663,7 @@ this.original_data = _data; this.id = _data.id; this.date = new Date(1000 * (_data.dateFirstPublication || _data.dateCreate) || Date.now); - this.formatted_date = Tlns.Utils.dateFormat(this.date,Tlns.Defaults.Timeline.tooltip_date_format); + this.formatted_date = Tlns.Utils.dateFormat(this.date,this.timeline.tooltip_date_format); this.title = _data.title; this.type = _data.__CLASS__; this.importance = _data.importance;