- tl_json ||= nil
%script{:type => "text/javascript"}
  - if tl_json
    var json = JSON.parse('#{tl_json}'.replace(/&quot;/g, '"'));
    var start, end;
    if (!ManageIQ.calendar.calDateFrom || !ManageIQ.calendar.calDateTo) {
    // set timeline to start one week ago and end today
    end = new Date();
    start = new Date(end - 24 * 60 * 60 * 1000 * 7);
    } else {
    start = new Date(ManageIQ.calendar.calDateFrom);
    end = new Date(ManageIQ.calendar.calDateTo);
    }
    ManageIQ.Timeline.load(json, start, end);

- tl_json ||= nil
%script{:type => "text/javascript"}
  - if tl_json
    var json = JSON.parse('#{tl_json}'.replace(/&quot;/g, '"'));
    var start, end;
    if (!ManageIQ.calendar.calDateFrom || !ManageIQ.calendar.calDateTo) {
    end = new Date();
    start = new Date(end - 24 * 60 * 60 * 1000 * 7);
    } else {
    start = new Date(ManageIQ.calendar.calDateFrom);
    end = new Date(ManageIQ.calendar.calDateTo);
    }
    ManageIQ.Timeline.load(json, start, end);

Fix javascript parse error on a timeline screen
Fix javascript parse error on a timeline screen

IE11 wouldn't deal correctly with a html comment inside
a javascript code.

https://bugzilla.redhat.com/show_bug.cgi?id=1389401
