|
|
@ -231,6 +231,7 @@ define([
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
h('div.cp-mediatag-control', right = h('span.fa.fa-chevron-right')),
|
|
|
|
h('div.cp-mediatag-control', right = h('span.fa.fa-chevron-right')),
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
var $close = $modal.find('.cp-modal-close');
|
|
|
|
var $left = $(left);
|
|
|
|
var $left = $(left);
|
|
|
|
var $right = $(right);
|
|
|
|
var $right = $(right);
|
|
|
|
var $inner = $container.find('.cp-mediatag-container');
|
|
|
|
var $inner = $container.find('.cp-mediatag-container');
|
|
|
@ -330,6 +331,13 @@ define([
|
|
|
|
$modal.on('keydown', function (e) {
|
|
|
|
$modal.on('keydown', function (e) {
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var close = function () {
|
|
|
|
|
|
|
|
$inner.find('audio, video').trigger('pause');
|
|
|
|
|
|
|
|
$modal.hide();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$close.on('click', close);
|
|
|
|
$modal.on('keyup', function (e) {
|
|
|
|
$modal.on('keyup', function (e) {
|
|
|
|
//if (!Slide.shown) { return; }
|
|
|
|
//if (!Slide.shown) { return; }
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
@ -347,7 +355,7 @@ define([
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 27: // esc
|
|
|
|
case 27: // esc
|
|
|
|
$modal.hide();
|
|
|
|
close();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|