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')
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
Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments