versioning.tpl 1.36 KB
Newer Older
1 2 3
{include file="header.tpl"}

    <div class="grouppageswrap view-container">
4 5
        {$timelineform|safe}
        <div class="jtline"></div>
6 7
    </div>

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    <script>
$(document).ready(function () {
  var jtLine = $('.jtline').jTLine({
              callType: 'ajax',
              url:'versioning.json.php',
              eventsMinDistance: 200,
              distanceMode: 'fixDistance',
              params: {literal}{{/literal}
                'sesskey': config.sesskey,
                {if $fromdate} 'fromdate' : '{$fromdate}', {/if}
                {if $todate}'todate' : '{$todate}', {/if}
                'view' : '{$view}',
                {literal}}{/literal},
              map: {
                  "dataRoot": "/",
                  "title": "taskTitle",
                  "subTitle": "taskSubTitle",
                  "dateValue": "assignDate",
                  "pointCnt": "taskShortDate",
                  "bodyCnt": "taskDetails"
              },
              formatTitle: function (title, obj) { return '<h3>' + title + '</h3>';},
              formatSubTitle: function (subTitle, obj)  { return '<div class="metadata">' + subTitle + '</div>';},
              formatBodyContent: function (bodyCnt, obj) { return bodyCnt;},
              onPointClick: function (e) {
                  console.log(e);
              }
          });
});
</script>

39
{include file="footer.tpl"}