File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ div(data-hook='viz-container')
5
5
//- = minValue
6
6
7
7
dt
8
- //-a(href="#")
9
- i.mms-icon-continuous ( data-hook ='refresh' )
8
+ a
9
+ i.mms-icon-continuous ( data-hook ='refresh' )
10
10
dd
11
11
ul.list-inline
12
12
each val in randomValues
Original file line number Diff line number Diff line change @@ -13,19 +13,21 @@ module.exports = VizView.extend({
13
13
. map ( function ( x ) {
14
14
return x . value ;
15
15
} )
16
- . sort ( )
17
16
. value ( ) ;
18
17
}
19
18
}
20
19
} ,
21
20
events : {
22
- 'click .fa- refresh' : 'refresh'
21
+ 'mousedown [data-hook= refresh] ' : 'refresh'
23
22
} ,
24
23
render : function ( ) {
25
24
this . renderWithTemplate ( this ) ;
26
25
} ,
27
- refresh : function ( ) {
26
+ refresh : function ( event ) {
28
27
debug ( 'refresh clicked' ) ;
28
+ event . stopPropagation ( ) ;
29
+ event . preventDefault ( ) ;
30
+ this . render ( ) ;
29
31
}
30
32
31
33
} ) ;
You can’t perform that action at this time.
0 commit comments