gitlab-org--gitlab-foss/app/views/projects/graphs/show.js.haml

20 lines
517 B
Text
Raw Normal View History

2013-06-25 06:55:03 -04:00
- if @success
:plain
controller = new ContributorsStatGraph
controller.init(#{@log})
2013-06-25 06:55:03 -04:00
$("select").change( function () {
var field = $(this).val()
controller.set_current_field(field)
controller.redraw_master()
controller.redraw_authors()
})
2013-06-25 06:55:03 -04:00
$("#brush_change").change( function () {
controller.change_date_header()
controller.redraw_authors()
})
- else
:plain
$('.stat-graph').replaceWith('<div class="alert alert-error">Failed to load graph</div>')