Skip to content

Commit 0622358

Browse files
pascalmosersolverat
authored andcommitted
Fix #125 (#126)
* fix #125
1 parent 4ca172c commit 0622358

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ToolboxBundle/Resources/public/js/frontend/plugins/jquery.tb.ext.video.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@
181181
var _ = this;
182182

183183
if (_.playInLightBox && _.hasPoster) {
184-
$container.on('click', function (ev) {
184+
_.$element.on('click', function (ev) {
185185
ev.preventDefault();
186-
$container.trigger('toolbox.video.asset.lightbox', [{
186+
_.$element.trigger('toolbox.video.asset.lightbox', [{
187187
'videoId': _.videoId,
188188
'posterPath': _.posterPath
189189
}]);
@@ -345,9 +345,9 @@
345345
var init = function () {
346346

347347
if (_.playInLightBox && _.hasPoster) {
348-
$container.on('click', function (ev) {
348+
_.$element.on('click', function (ev) {
349349
ev.preventDefault();
350-
$container.trigger('toolbox.video.vimeo.lightbox', [{
350+
_.$element.trigger('toolbox.video.vimeo.lightbox', [{
351351
'videoId': _.videoId,
352352
'posterPath': _.posterPath,
353353
'Vimeo': Vimeo.Player
@@ -532,4 +532,4 @@
532532
};
533533

534534
})
535-
(jQuery, window, document);
535+
(jQuery, window, document);

0 commit comments

Comments
 (0)