Commit b15e083 1 parent 81ecfeb commit b15e083 Copy full SHA for b15e083
File tree 1 file changed +4
-1
lines changed
ui/analyse/src/study/practice
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,10 @@ module.exports = {
98
98
config : function ( el , isUpdate ) {
99
99
if ( ! isUpdate )
100
100
el . addEventListener ( 'click' , function ( e ) {
101
+ e . preventDefault ( ) ;
101
102
var id = e . target . parentNode . getAttribute ( 'data-id' ) || e . target . getAttribute ( 'data-id' ) ;
102
103
if ( id ) ctrl . setChapter ( id ) ;
104
+ return false ;
103
105
} ) ;
104
106
}
105
107
} , [
@@ -108,7 +110,8 @@ module.exports = {
108
110
var active = ! ctrl . vm . loading && current && current . id === chapter . id ;
109
111
var completion = data . completion [ chapter . id ] ? 'done' : 'ongoing' ;
110
112
return [
111
- m ( 'div' , {
113
+ m ( 'a' , {
114
+ href : data . url + '/' + chapter . id ,
112
115
key : chapter . id ,
113
116
'data-id' : chapter . id ,
114
117
class : 'elem chapter ' + classSet ( {
You can’t perform that action at this time.
0 commit comments