Merge branch 'release' into stable

pull/1/head 1.4.2
Svein-Tore Griff With 2015-07-09 15:20:31 +02:00
commit 729842a41a
4 changed files with 16 additions and 1 deletions

View File

@ -235,6 +235,7 @@ H5P.QuestionSet = function (options, contentId) {
var _displayEndGame = function () { var _displayEndGame = function () {
if (rendered) { if (rendered) {
$myDom.children().hide().filter('.questionset-results').show(); $myDom.children().hide().filter('.questionset-results').show();
self.trigger('resize');
return; return;
} }
//Remove old score screen. //Remove old score screen.
@ -306,6 +307,10 @@ H5P.QuestionSet = function (options, contentId) {
} }
}); });
video.attach($videoContainer); video.attach($videoContainer);
// Resize on video loaded
video.on('loaded', function () {
self.trigger('resize');
});
video.play(); video.play();
if (params.endGame.skipButtonText) { if (params.endGame.skipButtonText) {

View File

@ -120,6 +120,11 @@
"default": "Vis fasit", "default": "Vis fasit",
"description": "" "description": ""
}, },
{
"label": "Tekst til \"Prøv igjen\" knapp",
"default": "Prøv igjen",
"description": ""
},
{ {
"label": "Tekst til \"Avslutt\" knapp", "label": "Tekst til \"Avslutt\" knapp",
"default": "Avslutt" "default": "Avslutt"

View File

@ -120,6 +120,11 @@
"default": "Vis fasit", "default": "Vis fasit",
"description": "" "description": ""
}, },
{
"label": "Tekst til \"Prøv igjen\" knapp",
"default": "Prøv igjen",
"description": ""
},
{ {
"label": "Tekst til \"Avslutt\" knapp", "label": "Tekst til \"Avslutt\" knapp",
"default": "Avslutt" "default": "Avslutt"

View File

@ -3,7 +3,7 @@
"contentType": "question", "contentType": "question",
"majorVersion": 1, "majorVersion": 1,
"minorVersion": 4, "minorVersion": 4,
"patchVersion": 1, "patchVersion": 2,
"embedTypes": [ "embedTypes": [
"iframe" "iframe"
], ],