forked from CIT/Vmeda.Online
		
	MOBILE-3173 quiz: Fix get amd data in ddmarker questions
This commit is contained in:
		
							parent
							
								
									3edc42ccc2
								
							
						
					
					
						commit
						6c56a83ede
					
				| @ -275,9 +275,9 @@ export class CoreQuestionHelperProvider { | ||||
|                     question.initObjects = this.textUtils.parseJSON(initMatch, null); | ||||
|                 } | ||||
| 
 | ||||
|                 const amdRegExp = new RegExp('require\\(\\["qtype_' + question.type + '/question"\\], ' + | ||||
|                     'function\\(amd\\) \\{ amd\.init\\(("(q|question-' + usageId + '-)' + question.slot + | ||||
|                     '".*?)\\); \\}\\);;', 'm'); | ||||
|                 const amdRegExp = new RegExp('require\\(\\[["\']qtype_' + question.type + '/question["\']\\], ?' + | ||||
|                     'function\\(amd\\) ?\\{ ?amd\\.init\\((["\'](q|question-' + usageId + '-)' + question.slot + | ||||
|                     '["\'].*?)\\);', 'm'); | ||||
|                 const amdMatch = match.match(amdRegExp); | ||||
|                 if (amdMatch) { | ||||
|                     // Try to convert the arguments to an array and add them to the question.
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user