Made title text div not beeing rendered if no title set

d3summaryChart
Pål Jørgensen 2014-04-15 14:48:28 +02:00
parent 61e62185a6
commit b6ba0e4c34
2 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,9 @@ H5P.QuestionSet = function (options, contentId) {
var texttemplate =
'<% if (introPage.showIntroPage) { %>' +
'<div class="intro-page">' +
' <div class="title"><span><%= introPage.title %></span></div>' +
' <% if (introPage.title) { %>' +
' <div class="title"><span><%= introPage.title %></span></div>' +
' <% } %>' +
' <% if (introPage.introduction) { %>' +
' <div class="introduction"><%= introPage.introduction %></div>' +
' <% } %>' +

View File

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