Commit 163a87a7 authored by Mike Greiling's avatar Mike Greiling

make a custom class for the burndown data toggle

parent 796158c3
...@@ -25,7 +25,7 @@ $(() => { ...@@ -25,7 +25,7 @@ $(() => {
let currentView = 'count'; let currentView = 'count';
chart.setData(openIssuesCount, { label: 'Open issues', animate: true }); chart.setData(openIssuesCount, { label: 'Open issues', animate: true });
$('.burndown-header').on('click', '.btn', function switchData() { $('.js-burndown-data-selector').on('click', 'button', function switchData() {
const $this = $(this); const $this = $(this);
const show = $this.data('show'); const show = $this.data('show');
if (currentView !== show) { if (currentView !== show) {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
.burndown-header .burndown-header
%h3 %h3
Burndown chart Burndown chart
.btn-group .btn-group.js-burndown-data-selector
%button.btn.btn-xs.active{ data: { show: 'count' } } %button.btn.btn-xs.active{ data: { show: 'count' } }
Issues Issues
%button.btn.btn-xs{ data: { show: 'weight' } } %button.btn.btn-xs{ data: { show: 'weight' } }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment