File tree 2 files changed +8
-8
lines changed
client/templates/course/lesson/quiz/questions/partials
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ Template.multipleChoiceTemplate.events({
90
90
}
91
91
question . options = options ;
92
92
} ,
93
- 'keyup .js-option-title-input' : function ( event ) {
94
- var index = parseInt ( event . target . id ) ;
95
- var text = $ ( event . target ) . val ( ) ;
96
- var question = Template . currentData ( ) . question ;
97
- var option = question . options [ index ] ;
98
- option . title = text ;
99
- } ,
93
+
100
94
101
95
} ) ;
Original file line number Diff line number Diff line change @@ -23,5 +23,11 @@ Template.multipleChoiceInputField.helpers({
23
23
} ) ;
24
24
25
25
Template . multipleChoiceInputField . events ( {
26
-
26
+ 'keyup .js-option-title-input' : function ( event ) {
27
+ var index = parseInt ( event . target . id ) ;
28
+ var text = $ ( event . target ) . val ( ) ;
29
+ var question = Template . currentData ( ) . question ;
30
+ var option = Template . currentData ( ) . option ;
31
+ option . title = text ;
32
+ } ,
27
33
} )
You can’t perform that action at this time.
0 commit comments