diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-11-23 11:18:11 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-11-23 11:18:11 +0200 |
| commit | e5aa5d16fe94facc69aac4beb9c5e541c63c3b9c (patch) | |
| tree | 6bfd642758752ace74de20a30634ab1bd7599c6f | |
| parent | bf00b52591daea06d1abc6468ce6877662250b07 (diff) | |
timeline -> AMD form
| -rw-r--r-- | src/view/timeline.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/view/timeline.js b/src/view/timeline.js index b7443551..64b766b7 100644 --- a/src/view/timeline.js +++ b/src/view/timeline.js @@ -1,5 +1,8 @@ "use strict" +define(['jquery', 'rz_core'], +function ($, rz_core) { + function checkSwitch(checkswitch) { if (checkswitch.checked) { @@ -65,9 +68,6 @@ $('body').bind('DOMMouseScroll', function(e){ } }); - - - function initAxis() { var bar_height = 20; var row_height = bar_height + 10; @@ -94,8 +94,6 @@ function initAxis() { var w = Math.round(diffDays * 15 - 100); graphinterval = w / diffDays; - - var svg=vis; vis.attr("width",w); @@ -150,8 +148,6 @@ function initAxis() { d3.select(this).style("fill", "#fc0"); }); - - var label = svg.selectAll("text") .data(deliverables, function (key) { return key.id @@ -167,8 +163,6 @@ function initAxis() { .text(function (d) { }); - - // Bottom Axis var btmAxis = svg.append("g") .attr("transform", "translate(0," + (h - 25) + ")") @@ -181,3 +175,6 @@ function initAxis() { .attr("class", "axis gantt") .call(xAxis); } + +return {}; +}); |
