Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/graphs/show.js.haml')
-rw-r--r--app/views/projects/graphs/show.js.haml16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/projects/graphs/show.js.haml b/app/views/projects/graphs/show.js.haml
new file mode 100644
index 00000000000..b7c9b4113e9
--- /dev/null
+++ b/app/views/projects/graphs/show.js.haml
@@ -0,0 +1,16 @@
+:plain
+ controller = new ContributorsStatGraph
+ controller.init(#{@log})
+
+ $("select").change( function () {
+ var field = $(this).val()
+ controller.set_current_field(field)
+ controller.redraw_master()
+ controller.redraw_authors()
+ })
+
+ $("#brush_change").change( function () {
+ controller.change_date_header()
+ controller.redraw_authors()
+ })
+