Skip to content

Commit 69de0ec

Browse files
rueckstiesskangas
authored andcommitted
refresh button now active on unique charts.
1 parent 4b8f8ed commit 69de0ec

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

scout-ui/src/minicharts/unique.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ div(data-hook='viz-container')
55
//- = minValue
66
77
dt
8-
//-a(href="#")
9-
i.mms-icon-continuous(data-hook='refresh')
8+
a
9+
i.mms-icon-continuous(data-hook='refresh')
1010
dd
1111
ul.list-inline
1212
each val in randomValues

scout-ui/src/minicharts/unique.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@ module.exports = VizView.extend({
1313
.map(function(x) {
1414
return x.value;
1515
})
16-
.sort()
1716
.value();
1817
}
1918
}
2019
},
2120
events: {
22-
'click .fa-refresh': 'refresh'
21+
'mousedown [data-hook=refresh]': 'refresh'
2322
},
2423
render: function() {
2524
this.renderWithTemplate(this);
2625
},
27-
refresh: function() {
26+
refresh: function(event) {
2827
debug('refresh clicked');
28+
event.stopPropagation();
29+
event.preventDefault();
30+
this.render();
2931
}
3032

3133
});

0 commit comments

Comments
 (0)