diff --git a/README.md b/README.md index 3c08b92..410e9c6 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Change log: - Version 1.3.0 - Restyle of the subtitle interface - Allows to select the subtitle from a zip file containing several entries + - Implemented the info window to credit the other projects - Version 1.2.0 - Drag and Drop: - drop a video file to the player to open it diff --git a/src/js/app.js b/src/js/app.js index 32b2506..f04677c 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -189,17 +189,21 @@ MediaElementPlayer.prototype.buildsubdelay = function(player, controls, layers, return false; }); - info.click(function(e) { - // e.preventDefault(); + function hideInfo(e) { info.css('visibility','hidden'); if (player.media.paused) $(".mejs-overlay-play").show(); - // return false; - }); + + e.preventDefault(); + e.stopPropagation(); + player.container.off("click", hideInfo); + return false; + } t.openInfoWindow = function() { info.css('visibility','visible'); $(".mejs-overlay-play").hide(); + player.container.click(hideInfo); }; var open = diff --git a/src/manifest.json b/src/manifest.json index 6f750a3..665e7d6 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { "name": "Subtitle Videoplayer", - "version": "1.2.0", + "version": "1.3.0", "manifest_version": 2, "minimum_chrome_version": "28", "icons": {