Made introduction text div not beeing rendered if no intro text set

d3summaryChart
Pål Jørgensen 2014-04-15 11:33:01 +02:00
parent 8d58c88657
commit 61e62185a6
2 changed files with 5 additions and 3 deletions

View File

@ -40,7 +40,9 @@ H5P.QuestionSet = function (options, contentId) {
'<% if (introPage.showIntroPage) { %>' +
'<div class="intro-page">' +
' <div class="title"><span><%= introPage.title %></span></div>' +
' <div class="introduction"><%= introPage.introduction %></div>' +
' <% if (introPage.introduction) { %>' +
' <div class="introduction"><%= introPage.introduction %></div>' +
' <% } %>' +
' <div class="buttons"><a class="qs-startbutton button"><%= introPage.startButtonText %></a></div>' +
'</div>' +
'<% } %>' +

View File

@ -3,7 +3,7 @@
"contentType": "question",
"majorVersion": 1,
"minorVersion": 0,
"patchVersion": 47,
"patchVersion": 48,
"runnable": 1,
"fullscreen": 0,
"machineName": "H5P.QuestionSet",
@ -48,4 +48,4 @@
"minorVersion": 0
}
]
}
}