parent
9a7a343844
commit
8d30949969
32
js/h5p.js
32
js/h5p.js
|
@ -144,9 +144,10 @@ H5P.init = function (target) {
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>')
|
'</div>')
|
||||||
.prependTo($container)
|
.prependTo($container)
|
||||||
.children().click(function () {
|
.children()
|
||||||
H5P.fullScreen($container, instance);
|
.click(function () {
|
||||||
})
|
H5P.fullScreen($container, instance);
|
||||||
|
})
|
||||||
.keydown(function (e) {
|
.keydown(function (e) {
|
||||||
if (e.which === 32 || e.which === 13) {
|
if (e.which === 32 || e.which === 13) {
|
||||||
H5P.fullScreen($container, instance);
|
H5P.fullScreen($container, instance);
|
||||||
|
@ -214,7 +215,7 @@ H5P.init = function (target) {
|
||||||
|
|
||||||
// Auto save current state if supported
|
// Auto save current state if supported
|
||||||
if (H5PIntegration.saveFreq !== false && (
|
if (H5PIntegration.saveFreq !== false && (
|
||||||
instance.getCurrentState instanceof Function ||
|
instance.getCurrentState instanceof Function ||
|
||||||
typeof instance.getCurrentState === 'function')) {
|
typeof instance.getCurrentState === 'function')) {
|
||||||
|
|
||||||
var saveTimer, save = function () {
|
var saveTimer, save = function () {
|
||||||
|
@ -931,15 +932,20 @@ H5P.Dialog = function (name, title, content, $element) {
|
||||||
.click(function () {
|
.click(function () {
|
||||||
self.close();
|
self.close();
|
||||||
})
|
})
|
||||||
.children('.h5p-inner').click(function () {
|
.children('.h5p-inner')
|
||||||
return false;
|
.click(function () {
|
||||||
})
|
return false;
|
||||||
.find('.h5p-close').click(function () {
|
})
|
||||||
self.close();
|
.find('.h5p-close')
|
||||||
}).end()
|
.click(function () {
|
||||||
.find('a').click(function (e) {
|
self.close();
|
||||||
e.stopPropagation();
|
})
|
||||||
}).end()
|
.end()
|
||||||
|
.find('a')
|
||||||
|
.click(function (e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
})
|
||||||
|
.end()
|
||||||
.end();
|
.end();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue